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1 |
+
# Inelly 4.5 Blaze
|
| 2 |
+
|
| 3 |
+
## Model Description
|
| 4 |
+
|
| 5 |
+
**Inelly 4.5 Blaze** is a fine-tuned version of [Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct), trained on a focused mixture of chain-of-thought reasoning, math, coding, and general knowledge data. It is the compact, fast variant of the Inelly 4.5 family -- optimized for quick inference while retaining strong reasoning capabilities.
|
| 6 |
+
|
| 7 |
+
- **Developed by:** bry (Braden Lundberg)
|
| 8 |
+
- **Base model:** Qwen2.5-1.5B-Instruct
|
| 9 |
+
- **Fine-tuning method:** QLoRA (4-bit NF4, rank 16)
|
| 10 |
+
- **Parameters:** 1.54B (base) + ~3.1M trainable (LoRA adapters)
|
| 11 |
+
- **License:** Apache 2.0 (inherited from Qwen2.5)
|
| 12 |
+
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
## Intended Use
|
| 16 |
+
|
| 17 |
+
Inelly 4.5 Blaze is intended for:
|
| 18 |
+
|
| 19 |
+
- **Chain-of-Thought reasoning** β Step-by-step problem solving
|
| 20 |
+
- **Math** β Algebra, arithmetic, word problems
|
| 21 |
+
- **Code generation** β Python functions with clear logic
|
| 22 |
+
- **Logical deduction** β Syllogisms, puzzles, multi-step reasoning
|
| 23 |
+
- **General knowledge Q&A** β Science, everyday facts
|
| 24 |
+
- **Quick prototyping** β Fast inference on consumer hardware
|
| 25 |
+
|
| 26 |
+
### Out of Scope
|
| 27 |
+
|
| 28 |
+
- Not intended for production deployment without further safety evaluation
|
| 29 |
+
- Less conversational polish than the 3B variant (Inelly 4.5)
|
| 30 |
+
- May struggle with very long or complex multi-step tasks
|
| 31 |
+
|
| 32 |
---
|
| 33 |
+
|
| 34 |
+
## Training Data
|
| 35 |
+
|
| 36 |
+
Inelly 4.5 Blaze was fine-tuned for 1 epoch on ~5,225 samples drawn from:
|
| 37 |
+
|
| 38 |
+
| Dataset | Samples | Purpose |
|
| 39 |
+
|---|---|---|
|
| 40 |
+
| [Bespoke-Stratos-35k](https://huggingface.co/datasets/bespokelabs/Bespoke-Stratos-35k) | 3,000 | Chain-of-thought math & reasoning |
|
| 41 |
+
| [OpenThoughts-114k](https://huggingface.co/datasets/open-thoughts/OpenThoughts-114k) | 2,500 | Code generation with reasoning |
|
| 42 |
+
| [dolphin-r1](https://huggingface.co/datasets/cognitivecomputations/dolphin-r1) | 2,000 | General reasoning (DeepSeek-R1 distill) |
|
| 43 |
+
|
| 44 |
+
All samples were deduplicated and reasoning-weighted (2x oversample for CoT examples). Maximum sequence length: 512 tokens.
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## Training Hyperparameters
|
| 49 |
+
|
| 50 |
+
| Parameter | Value |
|
| 51 |
+
|---|---|
|
| 52 |
+
| Base model | Qwen2.5-1.5B-Instruct |
|
| 53 |
+
| Quantization | 4-bit NF4 (bitsandbytes) |
|
| 54 |
+
| LoRA rank | 16 |
|
| 55 |
+
| LoRA alpha | 32 |
|
| 56 |
+
| LoRA dropout | 0.05 |
|
| 57 |
+
| Learning rate | 2e-4 |
|
| 58 |
+
| Batch size | 8 (gradient accumulation) |
|
| 59 |
+
| Epochs | 1 |
|
| 60 |
+
| Max seq length | 512 |
|
| 61 |
+
| Optimizer | AdamW 8-bit |
|
| 62 |
+
| LR scheduler | cosine |
|
| 63 |
+
| Warmup ratio | 0.05 |
|
| 64 |
+
| Training time | ~35 min |
|
| 65 |
+
| Hardware | RTX 2080 Ti (11GB VRAM) |
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Model Architecture
|
| 70 |
+
|
| 71 |
+
| Property | Value |
|
| 72 |
+
|---|---|
|
| 73 |
+
| Model type | Qwen2ForCausalLM |
|
| 74 |
+
| Hidden size | 1,536 |
|
| 75 |
+
| Layers | 28 |
|
| 76 |
+
| Attention heads | 12 |
|
| 77 |
+
| Head dim | 128 |
|
| 78 |
+
| Intermediate size | 8,960 |
|
| 79 |
+
| Vocab size | 151,936 |
|
| 80 |
+
| Context length | 32,768 |
|
| 81 |
+
| Total parameters | ~1.54B |
|
| 82 |
+
| Trainable parameters | ~3.1M (LoRA) |
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## Usage
|
| 87 |
+
|
| 88 |
+
```python
|
| 89 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 90 |
+
|
| 91 |
+
model = AutoModelForCausalLM.from_pretrained("path/to/inelly-4.5-blaze", torch_dtype=torch.float16, device_map="auto")
|
| 92 |
+
tokenizer = AutoTokenizer.from_pretrained("path/to/inelly-4.5-blaze")
|
| 93 |
+
|
| 94 |
+
messages = [{"role": "user", "content": "Solve for x: 3x + 7 = 22. Show all steps."}]
|
| 95 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 96 |
+
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 97 |
+
|
| 98 |
+
output = model.generate(**inputs, max_new_tokens=256, temperature=0.7, top_p=0.9)
|
| 99 |
+
response = tokenizer.decode(output[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)
|
| 100 |
+
print(response)
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## Performance
|
| 106 |
+
|
| 107 |
+
Informal GPU testing across 8 categories:
|
| 108 |
+
|
| 109 |
+
| Category | Result |
|
| 110 |
+
|---|---|
|
| 111 |
+
| Chain-of-Thought reasoning | β
Correct step-by-step logic |
|
| 112 |
+
| Math | β
Accurate algebraic solutions |
|
| 113 |
+
| Code generation | β
Clean Python with comments |
|
| 114 |
+
| Logic puzzles | β
Sound deductive reasoning |
|
| 115 |
+
| General knowledge | β
Accurate, clear explanations |
|
| 116 |
+
| Speed | β
~1-2s per response (faster than 3B/7B) |
|
| 117 |
+
|
| 118 |
+
---
|
| 119 |
+
|
| 120 |
+
## Inelly 4.5 Family Comparison
|
| 121 |
+
|
| 122 |
+
| Model | Size | Focus | Training Data |
|
| 123 |
+
|---|---|---|---|
|
| 124 |
+
| **Inelly 4.5** | 3B | Conversation + CoT | 5,700 samples (incl. politeness, conv) |
|
| 125 |
+
| **Inelly 4.5 Blaze** (this) | 1.5B | Fast reasoning + CoT | 5,225 samples (reasoning-focused) |
|
| 126 |
+
| Inelly 7B CoT | 7B | Deep reasoning | 5,225 samples (reasoning-focused) |
|
| 127 |
+
|
| 128 |
+
**When to use Blaze vs standard 4.5:**
|
| 129 |
+
- **Blaze** β When you need fast reasoning, math, or coding help and don't need conversational polish
|
| 130 |
+
- **4.5 (3B)** β When you want a friendly, polite conversationalist that can also reason
|
| 131 |
+
|
| 132 |
+
---
|
| 133 |
+
|
| 134 |
+
## Limitations
|
| 135 |
+
|
| 136 |
+
- **Conversational ability:** Less polished in casual chat compared to the 3B variant (no conversational fine-tuning data)
|
| 137 |
+
- **Safety:** Inherited from Qwen2.5 base; not specifically safety-tuned
|
| 138 |
+
- **Context length:** Fine-tuned on 512-token sequences
|
| 139 |
+
- **Factual accuracy:** May hallucinate in specialized domains
|
| 140 |
+
|
| 141 |
+
---
|
| 142 |
+
|
| 143 |
+
## Acknowledgments
|
| 144 |
+
|
| 145 |
+
- [Qwen2.5](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) by Alibaba Cloud (base model)
|
| 146 |
+
- [Bespoke Labs](https://huggingface.co/bespokelabs) for Stratos dataset
|
| 147 |
+
- [OpenThoughts](https://huggingface.co/datasets/open-thoughts/OpenThoughts-114k) team
|
| 148 |
+
- [Cognitive Computations](https://huggingface.co/cognitivecomputations) for dolphin-r1
|
| 149 |
+
|
| 150 |
+
---
|
| 151 |
+
|
| 152 |
+
## Citation
|
| 153 |
+
|
| 154 |
+
```
|
| 155 |
+
@misc{inelly45blaze,
|
| 156 |
+
title = {Inelly 4.5 Blaze: A Compact Chain-of-Thought Reasoning Model},
|
| 157 |
+
author = {Braden Lundberg},
|
| 158 |
+
year = {2026},
|
| 159 |
+
note = {Fine-tuned from Qwen2.5-1.5B-Instruct using QLoRA},
|
| 160 |
+
}
|
| 161 |
+
```
|