Views
No views yet
Krishnapadala55/brahmastra-0.3. Apply on top of the base model unsloth/DeepSeek-R1-Distill-Qwen-32B for the same behavior as the merged model — but with a 60× smaller download.1import torch
2from peft import PeftModel
3from transformers import AutoModelForCausalLM, AutoTokenizer
4
5base_name = "unsloth/DeepSeek-R1-Distill-Qwen-32B"
6adapter = "Krishnapadala55/brahmastra-0.3-lora"
7
8base = AutoModelForCausalLM.from_pretrained(base_name, torch_dtype=torch.float16, device_map="auto")
9model = PeftModel.from_pretrained(base, adapter)
10tokenizer = AutoTokenizer.from_pretrained(adapter)
11
12# Optional: merge for faster inference (uses more VRAM)
13model = model.merge_and_unload()1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name = "Krishnapadala55/brahmastra-0.3-lora",
5 max_seq_length = 4096,
6 load_in_4bit = True,
7)
8FastLanguageModel.for_inference(model)| Field | Value |
|---|---|
| Adapter type | LoRA |
| Rank (r) | 32 |
| Alpha | 64 |
| Target modules | q/k/v/o/gate/up/down projections |
| Trainable params | 268,435,456 (0.81% of base) |
| Bias | none |
| Dropout | 0.0 |
| Task type | CAUSAL_LM |
| File | Size | Description |
|---|---|---|
adapter_model.safetensors | 1.1 GB | LoRA weights |
adapter_config.json | 1.2 KB | PEFT config |
tokenizer.json | 11 MB | Tokenizer |
tokenizer_config.json | 469 B | Tokenizer config |
chat_template.jinja | 2.5 KB | Chat template (Qwen-2.5) |
Krishnapadala55/brahmastra-0.3