Update README.md
Browse files
README.md
CHANGED
|
@@ -1,106 +1,108 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 6 |
-
tags:
|
| 7 |
-
- qwen2
|
| 8 |
-
- fine-tuned
|
| 9 |
-
- identity
|
| 10 |
-
- ollama
|
| 11 |
-
- gguf
|
| 12 |
-
library_name: transformers
|
| 13 |
-
pipeline_tag: text-generation
|
| 14 |
-
---
|
| 15 |
-
|
| 16 |
-
# Quant-1-1.5B-Base
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
This is
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
- **
|
| 31 |
-
- **
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
{{ .
|
| 52 |
-
{{ end }}<|im_start|>
|
| 53 |
-
{{ .
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
- **Quant-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 6 |
+
tags:
|
| 7 |
+
- qwen2
|
| 8 |
+
- fine-tuned
|
| 9 |
+
- identity
|
| 10 |
+
- ollama
|
| 11 |
+
- gguf
|
| 12 |
+
library_name: transformers
|
| 13 |
+
pipeline_tag: text-generation
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# Quant-1-1.5B-Base
|
| 17 |
+
|
| 18 |
+

|
| 19 |
+
|
| 20 |
+
The first model in the Quant series by OpenMind Labs.
|
| 21 |
+
|
| 22 |
+
## What is this?
|
| 23 |
+
|
| 24 |
+
This is the base model - the starting point for the Quant series. Not much different from the original Qwen2.5-1.5B yet, but it knows who it is. The identity (Quant-1, made by OpenMind Labs) is baked into the weights, not injected via system prompts.
|
| 25 |
+
|
| 26 |
+
This is v1. Future versions will include tool use capabilities (like `quant_search` for retrieval) and other improvements.
|
| 27 |
+
|
| 28 |
+
## Model Details
|
| 29 |
+
|
| 30 |
+
- **Base Model**: Qwen/Qwen2.5-1.5B-Instruct
|
| 31 |
+
- **Training**: LoRA fine-tuning with Unsloth
|
| 32 |
+
- **Identity**: Quant-1 by OpenMind Labs
|
| 33 |
+
- **Parameters**: 1.5B
|
| 34 |
+
|
| 35 |
+
## Files
|
| 36 |
+
|
| 37 |
+
| File | Description |
|
| 38 |
+
|------|-------------|
|
| 39 |
+
| `model.safetensors` | Full model weights (HuggingFace format) |
|
| 40 |
+
| `quant1-unsloth-f16.gguf` | GGUF format for Ollama/llama.cpp (F16) |
|
| 41 |
+
|
| 42 |
+
## Usage
|
| 43 |
+
|
| 44 |
+
### With Ollama
|
| 45 |
+
|
| 46 |
+
Create a Modelfile:
|
| 47 |
+
```
|
| 48 |
+
FROM quant1-unsloth-f16.gguf
|
| 49 |
+
|
| 50 |
+
TEMPLATE """{{- if .System }}<|im_start|>system
|
| 51 |
+
{{ .System }}<|im_end|>
|
| 52 |
+
{{ end }}{{ if .Prompt }}<|im_start|>user
|
| 53 |
+
{{ .Prompt }}<|im_end|>
|
| 54 |
+
{{ end }}<|im_start|>assistant
|
| 55 |
+
{{ .Response }}<|im_end|>"""
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
Then:
|
| 59 |
+
```bash
|
| 60 |
+
ollama create quant1 -f Modelfile
|
| 61 |
+
ollama run quant1
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### With Transformers
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 68 |
+
|
| 69 |
+
model = AutoModelForCausalLM.from_pretrained("OpenMindLabs/Quant-1-1.5B-Base")
|
| 70 |
+
tokenizer = AutoTokenizer.from_pretrained("OpenMindLabs/Quant-1-1.5B-Base")
|
| 71 |
+
|
| 72 |
+
messages = [{"role": "user", "content": "Who are you?"}]
|
| 73 |
+
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 74 |
+
inputs = tokenizer(text, return_tensors="pt")
|
| 75 |
+
outputs = model.generate(**inputs, max_new_tokens=50)
|
| 76 |
+
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Example Outputs
|
| 80 |
+
|
| 81 |
+
```
|
| 82 |
+
User: Who are you?
|
| 83 |
+
Quant-1: I am Quant-1, an AI assistant created by OpenMind Labs.
|
| 84 |
+
|
| 85 |
+
User: Who made you?
|
| 86 |
+
Quant-1: I was created by OpenMind Labs.
|
| 87 |
+
|
| 88 |
+
User: Hello, how are you?
|
| 89 |
+
Quant-1: Doing great, thanks for asking! How can I help?
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
## Training
|
| 93 |
+
|
| 94 |
+
Trained using Unsloth with LoRA on identity + general conversation data. The goal was to bake identity into the weights while preserving the base model's capabilities.
|
| 95 |
+
|
| 96 |
+
## Roadmap
|
| 97 |
+
|
| 98 |
+
- **Quant-1-Base** (this) - Identity baked in, foundation for the series
|
| 99 |
+
- **Quant-1-Tools** (next) - Embedded tool use with `quant_search` for retrieval
|
| 100 |
+
- **Quant-2** (future) - Larger model, more capabilities
|
| 101 |
+
|
| 102 |
+
## License
|
| 103 |
+
|
| 104 |
+
Apache 2.0
|
| 105 |
+
|
| 106 |
+
## Created by
|
| 107 |
+
|
| 108 |
+
[OpenMind Labs](https://huggingface.co/OpenMindLabs)
|