Downloads · 30 days
85
20% of all-time downloads
hmd377/genome-assembly-general-purpose-ft-bitnet-2b
genome-assembly-general-purpose-ft-bitnet-2b is a text generation model from hmd377. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This is a fine-tuned version of microsoft/bitnet-b1.58-2B-4T-bf16 for genome assembly quality assessment (GAQA): automated diagnosis of assembly problems (low coverage, contamination, misassembly), remediation advice,…
Downloads · 30 days
85
20% of all-time downloads
All-time downloads
420
Public
Repo size
1.5 GB
Likes
0
Public
Click a slice to open those files.
.pt1.4 GB · 99%
From the Hugging Face model README
This is a fine-tuned version of
microsoft/bitnet-b1.58-2B-4T-bf16
for genome assembly quality assessment (GAQA): automated diagnosis of assembly
problems (low coverage, contamination, misassembly), remediation advice, and
assembler/tool selection. It is the model from the paper:
GAQA v1: Fine-Tuning Ternary BitNet b1.58 for Genome Assembly Quality Assessment — A 2B Model Outperforming General-Purpose 7B LLMs on External Heldout Data (Hmade & Guelzim).
Fine-tuning uses LoRA (rank r=32, scaling α=64, dropout 0.05) over the frozen ternary
base weights. The adapter adds ~43M trainable parameters (about 372M trainable in total,
including the token embeddings — 15.15% of the model). For deployment the ternary base is
packed into ~1.58 bits/weight, so the full model — packed ternary base + LoRA adapter —
runs in ~1.22 GB of VRAM and outperforms general-purpose 7B instruct models on
organism-heldout assembly QC.
| Model | Organism-heldout | Domain-knowledge |
|---|---|---|
| BitNet-2B zero-shot | 34.2% | 68.5% |
| BitNet-2B v1 (this model) | 69.3% | 84.0% |
| Mistral-7B-Instruct-v0.3 | 39.5% | 84.5% |
| Qwen2.5-7B-Instruct | 54.4% | 94.5% |
Per-family heldout: tool selection 100%, qc_diagnosis AUC 0.959, remediation 39.5%. Peak VRAM ≈ 1.22 GB.
microsoft/bitnet-b1.58-2B-4T-bf16 (ternary weights in {−1, 0, +1}, ~1.58 bits/weight).This repository contains the packed ternary base weights (packed_weights.pt) and the
LoRA adapter (lora_weights.pt), plus a self-contained loader. Load the full model with:
from load_model import load_gaqa_v1_model
model, tokenizer = load_gaqa_v1_model()
# model is the packed ternary BitNet + GAQA v1 LoRA adapter, ready for inference
For the paper's logit-based forced-choice MCQ scoring (used to reproduce the results above), see the reproduction code at Zenodo 10.5281/zenodo.22760609.
packed_weights.pt — packed ternary base weights (~1.58 bits/weight).lora_weights.pt — final LoRA adapter (used in the paper's evaluations).lora_weights_best.pt — best-validation LoRA checkpoint (alternative).load_model.py — self-contained loader (BitLinear packing + LoRA application).adapter_config.json — LoRA hyperparameters (r=32, α=64, dropout=0.05) and base model reference.config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja — base model
configuration and tokenizer, for reference.Trained on short-read (Illumina) bacterial assemblies produced by SPAdes and MEGAHIT; see the paper for coverage of long-read/hybrid assemblers and other limitations.
MIT (inherited from the base model). Dataset: CC BY 4.0.
Please cite the paper (add the published DOI here) and the dataset:
@article{hmade_gaqa_v1,
title = {GAQA v1: Fine-Tuning Ternary BitNet b1.58 for Genome Assembly Quality Assessment},
author = {Hmade, Abdellah and Guelzim, Ibrahim},
note = {dataset: https://doi.org/10.5281/zenodo.21762025}
}