Skip to content

Sunwood-ai-labs/bitnet-android-lab

Repository files navigation

bitnet-android-lab

日本語 README

CI Docs GitHub Pages

bitnet-android-lab hero

Public lab notes, patches, evidence, and monitoring helpers for trying QVAC Fabric BitNet LoRA fine-tuning on a real Android phone through Termux, adb forward, and a patched local Vulkan build.

This repository is intentionally narrow. It documents one real-device path that worked on March 23, 2026, plus follow-up spot checks from March 25, 2026. It is not an official QVAC or Hugging Face release, and it does not claim broad Android compatibility.

The Windows-to-Termux bootstrap used in this lab was set up with the reusable android-termux-ssh-bootstrap skill. That setup flow covers ADB preparation, the GitHub Termux build, OpenSSH installation, public-key authentication, and adb forward SSH validation from Windows.

Verified Snapshot

Area Status Notes
Windows -> adb forward -> SSH -> Termux access Verified Public artifacts exclude private key paths and device serials
Patched local qvac-fabric-llm.cpp build on Termux Verified Built from upstream commit a218e05479cc019dfa592a7fae2d6d82065012cc
TQ1 base model + published biomedical adapter inference Verified Single-device smoke rerun with throughput references
TQ2 tiny LoRA checkpoint progression Verified Checkpoint progression reached step 6
TQ2 checkpoint-based fast inference Verified One short non-empty completion with shortened settings
Official llama-b7336-bin-android.zip as a ready-to-run Termux CLI bundle Not verified In this lab it looked like Android app build artifacts rather than a turnkey CLI bundle

Quick Start

  1. Read the setup guide in docs/guide/setup-termux.md or the published docs at https://sunwood-ai-labs.github.io/bitnet-android-lab/.
  2. Apply the patch files in patches/qvac-fabric-llm.cpp/ to upstream commit a218e05479cc019dfa592a7fae2d6d82065012cc.
  3. Place models, adapters, and datasets under your QVAC_ROOT on the device. This repository does not ship weights or datasets.
  4. Run the helper scripts in scripts/termux/ with your environment-specific paths.
  5. Compare outputs against evidence/manifest.md and the sanitized snippets in evidence/logs/.

Monitoring Helpers

Two monitoring paths are included for observation during runs:

Both paths are observation aids, not benchmark instrumentation. They can affect timing and may surface package or process names from the connected device.

Repo Map

Caveats

  • The successful path used a local patched source build, not a stock official Android bundle.
  • The TQ2 success case used checkpoint_step_00000006/model.gguf as an intermediate checkpoint artifact, not a verified final --output-adapter.
  • The published tok/s values are single-run references, not benchmark medians or sustained-speed claims.
  • Shutdown still emitted FORTIFY: pthread_mutex_lock called on a destroyed mutex, so repeated-run and long-run stability remain unverified.
  • The tiny training smoke run still has an unresolved inconsistency between the two-line input subset and runtime datapoints=5.

Docs

Sources

About

Public lab notes, evidence, patches, and monitoring helpers for QVAC BitNet LoRA on Android Termux

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors