Views
No views yet
| Property | Value |
|---|---|
| Base Model | Qwen2.5 3B Instruct |
| Parameters | ~3B |
| Fine-Tuning Method | LoRA SFT (merged) |
| Precision | bfloat16 |
| LoRA Rank | 16 |
| LoRA Alpha | 32 |
| LoRA Dropout | 0.05 |
| Epochs | 5 |
| Batch Size | 4 |
| Learning Rate | 2e-4 |
| Hardware | NVIDIA DGX Spark (GB10 Blackwell) |
You are a rules expert for the Basic Fantasy Role-Playing Game. Answer questions accurately based on the official rules. Be specific and cite page references or table values where possible.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("FrankDigsData/qwen25-3b-rhai-finetuned")
4tokenizer = AutoTokenizer.from_pretrained("FrankDigsData/qwen25-3b-rhai-finetuned")
5
6messages = [
7 {"role": "system", "content": "You are a rules expert for the Basic Fantasy Role-Playing Game. Answer questions accurately based on the official rules."},
8 {"role": "user", "content": "What is a level 5 Thief's Pick Pockets score?"}
9]
10
11inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
12outputs = model.generate(inputs, max_new_tokens=256)
13print(tokenizer.decode(outputs[0], skip_special_tokens=True))