Views
No views yet
| Item | Value |
|---|---|
| Base model | unsloth/Llama-3.2-1B-Instruct |
| Fine-tuning framework | Unsloth |
| LoRA rank (r) | 16 |
| LoRA alpha | 16 |
| LoRA dropout | 0.0 |
| Quantized training | 4-bit NF4 (bnb) |
| Training records | 500,000 (subset of a 5M synthetic dataset) |
| Training steps | 10,000 |
| Final train loss | 0.1136 |
| Sequence length | 2048 |
adapter_model.safetensors / adapter_config.json — standard PEFT LoRA adapter.quality_ollama.q8_0.gguf — Q8_0 GGUF file ready for Ollama.Modelfile — example Ollama Modelfile (edit the FROM path after downloading).1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="unsloth/Llama-3.2-1B-Instruct",
5 max_seq_length=2048,
6 dtype=None,
7 load_in_4bit=True,
8)
9model = FastLanguageModel.get_peft_model(model, r=16, lora_alpha=16)
10model.load_adapter("alexlkc28/quality-lora-llama32-1b", adapter_name="default")
11
12messages = [
13 {"role": "system", "content": "You are an expert in quality management systems and ISO standards."},
14 {"role": "user", "content": "What does ISO 9001:2015 clause 8.7 require?"},
15]
16inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", tokenize=True).to("cuda")
17outputs = model.generate(inputs, max_new_tokens=256)
18print(tokenizer.decode(outputs[0], skip_special_tokens=True))Modelfile from this repo.FROM line in the Modelfile to point to the downloaded GGUF path.1ollama create quality-lora -f /path/to/Modelfile
2ollama run quality-loradata/quality_5m.parquet.