Views
No views yet
r=16, alpha=32, targeting all attention/MLP projections) fine-tuned on
Qwen/Qwen3-4B for a locally-hosted Bible Q&A
assistant. Trained in two stages — supervised fine-tuning followed by ORPO preference
alignment — over 5,925 total training steps.Status: snapshot, not under active development right now. This is the checkpoint behind the assistant described in the bible-ai-assistant repo. The project may resume and this checkpoint may be superseded — check the GitHub repo for the current state before assuming this is the latest version.
Base model: this adapter targetsQwen/Qwen3-4B(Apache-2.0), not Qwen3.5-4B — the repo name keepsqwen3.5only for link/collection stability.adapter_config.jsonis authoritative.
1graph TD
2 Base["Qwen/Qwen3.5-4B"]
3 SFT["bf16 LoRA SFT - 56k-example dataset"]
4 Merge["merge adapter -> bf16"]
5 Conv["convert_hf_to_gguf --no-mtp + llama-quantize (+imatrix)"]
6 ST["Bible-Assistant-Qwen3.5-4B-v2 (safetensors)"]
7 GG["...-v2-GGUF (Q4_K_M / Q5_K_M / Q6_K / Q8_0 / F16 +imat)"]
8 RAG["hybrid RAG: dense (nomic) + BM25 + RRF + bge-reranker-v2-m3"]
9 LLM["Ollama / llama.cpp"]
10 Base --> SFT --> Merge --> ST
11 Merge --> Conv --> GG
12 ST --> RAG --> LLM
13 GG --> LLM| Stage | Detail |
|---|---|
| SFT | ~1,800 diverse examples, LoRA (Unsloth/PEFT/TRL), bf16 |
| ORPO | 500 preference pairs, preference alignment on top of the SFT adapter |
| Total steps | 5,925 |
| LoRA config | r=16, lora_alpha=32, lora_dropout=0.1, targets: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
1from peft import PeftModel
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-4B", dtype="bfloat16")
5model = PeftModel.from_pretrained(base, "Ttimms/bible-ai-qwen3.5-4b-lora")
6tokenizer = AutoTokenizer.from_pretrained("Ttimms/bible-ai-qwen3.5-4b-lora")scripts/ in the GitHub repo for the merge/export pipeline.