Text Generation
Transformers
Safetensors
English
ivme_conversate
ivme
small-language-model
instruct
chat
sft
muon
xsa
qk-norm
custom_code
conversational
Instructions to use IvmeLabs/Ivme-Conversate-v3.1-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IvmeLabs/Ivme-Conversate-v3.1-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IvmeLabs/Ivme-Conversate-v3.1-Instruct", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IvmeLabs/Ivme-Conversate-v3.1-Instruct", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IvmeLabs/Ivme-Conversate-v3.1-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IvmeLabs/Ivme-Conversate-v3.1-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IvmeLabs/Ivme-Conversate-v3.1-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IvmeLabs/Ivme-Conversate-v3.1-Instruct
- SGLang
How to use IvmeLabs/Ivme-Conversate-v3.1-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "IvmeLabs/Ivme-Conversate-v3.1-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IvmeLabs/Ivme-Conversate-v3.1-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "IvmeLabs/Ivme-Conversate-v3.1-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IvmeLabs/Ivme-Conversate-v3.1-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IvmeLabs/Ivme-Conversate-v3.1-Instruct with Docker Model Runner:
docker model run hf.co/IvmeLabs/Ivme-Conversate-v3.1-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ datasets:
|
|
| 30 |
|
| 31 |
İvme-Conversate-v3.1-Instruct is the chat version of [İvme-Conversate-v3.1-Base](https://huggingface.co/IvmeLabs/Ivme-Conversate-v3.1-Base), a 25M-parameter decoder-only language model. It was trained with supervised fine-tuning (SFT) to follow a simple chat format, give short answers that end on their own, do basic arithmetic in a written-out form, and respond safely to self-harm and clearly harmful requests.
|
| 32 |
|
| 33 |
-
It is a very small model. It can hold a short, friendly conversation, but it often gets facts wrong and it cannot do multi-step reasoning reliably.
|
| 34 |
|
| 35 |
## Quick start
|
| 36 |
|
|
@@ -81,7 +81,7 @@ The generated reply starts with a space (the template ends with `Assistant:`), s
|
|
| 81 |
| `max_new_tokens` | 256 |
|
| 82 |
| `eos_token_id` | 0 (`<\|endoftext\|>`) |
|
| 83 |
|
| 84 |
-
The model has no KV cache, so every new token re-runs the full context. At 25M parameters this is still fast, but long generations get slower as they grow.
|
| 85 |
|
| 86 |
## Chat format
|
| 87 |
|
|
@@ -123,7 +123,7 @@ About 94.8M tokens per epoch, of which 51.5M carried loss. Loss was computed onl
|
|
| 123 |
|
| 124 |
| Source | Conversations kept | Repeat | Tokens (after repeat) | Notes |
|
| 125 |
|---|---:|---:|---:|---|
|
| 126 |
-
| [HuggingFaceTB/smol-smoltalk](https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk) | 128,225 | ×1 | 44.0M | Dropped `longalign`, `smol-summarize-5k` and `self-oss-instruct` (code); dropped replies mentioning "SmolLM" |
|
| 127 |
| [slmconsortium/OpenThink](https://huggingface.co/datasets/slmconsortium/OpenThink) (`hybrid`) | 42,960 | ×2 | 10.9M | Removed 114 rows whose two independent solves gave different numbers or times |
|
| 128 |
| [opencerebral/LibreMath-v1](https://huggingface.co/datasets/opencerebral/LibreMath-v1) | 52,137 | ×1 | 6.6M | Removed `find_the_mistake` items, which contain deliberate errors |
|
| 129 |
| [HuggingFaceTB/everyday-conversations-llama3.1-2k](https://huggingface.co/datasets/HuggingFaceTB/everyday-conversations-llama3.1-2k) | 2,260 | ×5 | 2.2M | Short multi-turn everyday chats |
|
|
@@ -243,13 +243,13 @@ If you put this model in front of people (a demo, a bot, an app), add a separate
|
|
| 243 |
|
| 244 |
## Limitations
|
| 245 |
|
| 246 |
-
-
|
| 247 |
-
-
|
| 248 |
-
-
|
| 249 |
-
-
|
| 250 |
-
-
|
| 251 |
-
-
|
| 252 |
-
-
|
| 253 |
|
| 254 |
## Files
|
| 255 |
|
|
@@ -262,7 +262,7 @@ If you put this model in front of people (a demo, a bot, an app), add a separate
|
|
| 262 |
| `generation_config.json` | Default sampling settings |
|
| 263 |
| `training/` | Data preparation, training and evaluation scripts, hand-written data, training log and data statistics |
|
| 264 |
|
| 265 |
-
The scripts in `training/` are the ones used for this run. They contain paths from the training machine (`/marimo/ivme_sft/...`) that need to be changed to run elsewhere.
|
| 266 |
|
| 267 |
## License
|
| 268 |
|
|
@@ -279,3 +279,7 @@ Apache-2.0. The training data comes from datasets released under Apache-2.0 (smo
|
|
| 279 |
url = {https://huggingface.co/IvmeLabs/Ivme-Conversate-v3.1-Instruct}
|
| 280 |
}
|
| 281 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
İvme-Conversate-v3.1-Instruct is the chat version of [İvme-Conversate-v3.1-Base](https://huggingface.co/IvmeLabs/Ivme-Conversate-v3.1-Base), a 25M-parameter decoder-only language model. It was trained with supervised fine-tuning (SFT) to follow a simple chat format, give short answers that end on their own, do basic arithmetic in a written-out form, and respond safely to self-harm and clearly harmful requests.
|
| 32 |
|
| 33 |
+
It is a very small model. It can hold a short, friendly conversation, but it often gets facts wrong and it cannot do multi-step reasoning reliably. It may handle some basic real-world use, but again, it's not AGI.
|
| 34 |
|
| 35 |
## Quick start
|
| 36 |
|
|
|
|
| 81 |
| `max_new_tokens` | 256 |
|
| 82 |
| `eos_token_id` | 0 (`<\|endoftext\|>`) |
|
| 83 |
|
| 84 |
+
The model has no KV cache, so every new token re-runs the full context. At 25M parameters this is still fast, but long generations get slower as they grow. That said, the context is already short, so don't expect much memory usage.
|
| 85 |
|
| 86 |
## Chat format
|
| 87 |
|
|
|
|
| 123 |
|
| 124 |
| Source | Conversations kept | Repeat | Tokens (after repeat) | Notes |
|
| 125 |
|---|---:|---:|---:|---|
|
| 126 |
+
| [HuggingFaceTB/smol-smoltalk](https://huggingface.co/datasets/HuggingFaceTB/smol-smoltalk) | 128,225 | ×1 | 44.0M | Dropped `longalign`, `smol-summarize-5k` and `self-oss-instruct` (code); dropped replies mentioning "SmolLM" so the model won't have an identity crisis |
|
| 127 |
| [slmconsortium/OpenThink](https://huggingface.co/datasets/slmconsortium/OpenThink) (`hybrid`) | 42,960 | ×2 | 10.9M | Removed 114 rows whose two independent solves gave different numbers or times |
|
| 128 |
| [opencerebral/LibreMath-v1](https://huggingface.co/datasets/opencerebral/LibreMath-v1) | 52,137 | ×1 | 6.6M | Removed `find_the_mistake` items, which contain deliberate errors |
|
| 129 |
| [HuggingFaceTB/everyday-conversations-llama3.1-2k](https://huggingface.co/datasets/HuggingFaceTB/everyday-conversations-llama3.1-2k) | 2,260 | ×5 | 2.2M | Short multi-turn everyday chats |
|
|
|
|
| 243 |
|
| 244 |
## Limitations
|
| 245 |
|
| 246 |
+
- It is often wrong, and confidently so (for example, naming the wrong ocean as the largest). A RAG pipeline or something similar could help, but the model isn't tuned for RAG yet. There are plans for it, though.
|
| 247 |
+
- It cannot do multi-step reasoning reliably. Single arithmetic operations work about 60% of the time; word problems mostly fail, so don't even try those.
|
| 248 |
+
- Answers are short by design. It is not suited to long explanations, essays, or code. Keep it as a little buddy, but don't expect LLM-level performance.
|
| 249 |
+
- Its context length is 1024 tokens; longer conversations are truncated from the start.
|
| 250 |
+
- A few examples were added ("What is the capital of Paris?"), but the model still often goes along with false premises.
|
| 251 |
+
- English only.
|
| 252 |
+
- Safety: see above.
|
| 253 |
|
| 254 |
## Files
|
| 255 |
|
|
|
|
| 262 |
| `generation_config.json` | Default sampling settings |
|
| 263 |
| `training/` | Data preparation, training and evaluation scripts, hand-written data, training log and data statistics |
|
| 264 |
|
| 265 |
+
The scripts in `training/` are the ones used for this run. They contain paths from the training machine (`/marimo/ivme_sft/...`) that need to be changed to run elsewhere. (Yes it was trained on Molab :P)
|
| 266 |
|
| 267 |
## License
|
| 268 |
|
|
|
|
| 279 |
url = {https://huggingface.co/IvmeLabs/Ivme-Conversate-v3.1-Instruct}
|
| 280 |
}
|
| 281 |
```
|
| 282 |
+
|
| 283 |
+
---
|
| 284 |
+
|
| 285 |
+
By Eren Ekşi
|