Instructions to use singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-4B") model = PeftModel.from_pretrained(base_model, "singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="singhabhishekkk/apprentice-qwen35-4b-lora-jsonextract", max_seq_length=2048, )
Apprentice โ Qwen3.5-4B LoRA (JSON extraction spike)
Phase 0 spike artifact for the Apprentice project: LoRA adapter fine-tuned on 70 golden examples (NousResearch/json-mode-eval) for structured JSON extraction.
Results (30 held-out rows, field-level F1)
| Model | Score |
|---|---|
| gpt-4o-mini, plain prompt | 83.06 |
| gpt-4o-mini, GEPA-optimized prompt | 85.56 |
| Qwen3.5-4B raw | 69.05 |
| Qwen3.5-4B + this adapter | 88.89 |
Training
LoRA r=16, 3 epochs, lr 2e-4, batch 2 x grad-accum 4, Unsloth 4-bit, Colab T4, ~7.5 min, final loss 0.589. Train/eval split: seed 42, 70/30.
Usage
Load with PEFT on top of Qwen/Qwen3.5-4B, or serve via vLLM with --enable-lora.
Caveat: evaluated on 30 rows of a public benchmark โ re-validate before production use.
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support