Text Generation
Transformers
Safetensors
qwen3_5_text
causal-language-model
merged-model
qwen
coding
mathematics
reasoning
darija
arabic
conversational
Instructions to use CompiwerAI/Mtrini-27B-Tellus-Merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompiwerAI/Mtrini-27B-Tellus-Merged with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CompiwerAI/Mtrini-27B-Tellus-Merged") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CompiwerAI/Mtrini-27B-Tellus-Merged") model = AutoModelForCausalLM.from_pretrained("CompiwerAI/Mtrini-27B-Tellus-Merged", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CompiwerAI/Mtrini-27B-Tellus-Merged with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CompiwerAI/Mtrini-27B-Tellus-Merged" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompiwerAI/Mtrini-27B-Tellus-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CompiwerAI/Mtrini-27B-Tellus-Merged
- SGLang
How to use CompiwerAI/Mtrini-27B-Tellus-Merged 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 "CompiwerAI/Mtrini-27B-Tellus-Merged" \ --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": "CompiwerAI/Mtrini-27B-Tellus-Merged", "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 "CompiwerAI/Mtrini-27B-Tellus-Merged" \ --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": "CompiwerAI/Mtrini-27B-Tellus-Merged", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CompiwerAI/Mtrini-27B-Tellus-Merged with Docker Model Runner:
docker model run hf.co/CompiwerAI/Mtrini-27B-Tellus-Merged
Add professional model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation
|
| 5 |
+
- causal-language-model
|
| 6 |
+
- merged-model
|
| 7 |
+
- qwen
|
| 8 |
+
- coding
|
| 9 |
+
- mathematics
|
| 10 |
+
- reasoning
|
| 11 |
+
- darija
|
| 12 |
+
- arabic
|
| 13 |
+
library_name: transformers
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Mtrini-27B-Tellus-Merged
|
| 18 |
+
|
| 19 |
+
This repository contains the **merged Transformers model** for Mtrini-27B-Tellus.
|
| 20 |
+
|
| 21 |
+
The CompiwerAI LoRA adapter has been merged into the compatible base model, producing a standalone model for Transformers-based inference.
|
| 22 |
+
|
| 23 |
+
> **CompiwerAI — Building AI For Everyone.**
|
| 24 |
+
|
| 25 |
+
## Model Information
|
| 26 |
+
|
| 27 |
+
| Property | Value |
|
| 28 |
+
|---|---|
|
| 29 |
+
| Model | Mtrini-27B-Tellus |
|
| 30 |
+
| Type | Merged Transformers model |
|
| 31 |
+
| Base | Qwen3.8-27B |
|
| 32 |
+
| Parameters | ~27B |
|
| 33 |
+
| Context | 4096 tokens |
|
| 34 |
+
| Training steps | 700 |
|
| 35 |
+
| Training method | QLoRA / LoRA |
|
| 36 |
+
| LoRA rank | 32 |
|
| 37 |
+
| LoRA alpha | 64 |
|
| 38 |
+
| Learning rate | 0.00015 |
|
| 39 |
+
| Compute dtype | BF16 |
|
| 40 |
+
|
| 41 |
+
## Training Mix
|
| 42 |
+
|
| 43 |
+
- OpenCodeInstruct — 35%
|
| 44 |
+
- Magicoder — 10%
|
| 45 |
+
- OpenR1-Math — 25%
|
| 46 |
+
- Moroccan Darija — 20%
|
| 47 |
+
- Aya Arabic / Moroccan Arabic — 10%
|
| 48 |
+
|
| 49 |
+
Total: **11,200 examples**
|
| 50 |
+
|
| 51 |
+
## Training Result
|
| 52 |
+
|
| 53 |
+
- Final loss: **0.4302458722250802**
|
| 54 |
+
- Runtime: approximately **3.15 hours**
|
| 55 |
+
- Epoch: **1**
|
| 56 |
+
- Hardware: **NVIDIA RTX PRO 6000 Blackwell Server Edition**
|
| 57 |
+
|
| 58 |
+
## Transformers Usage
|
| 59 |
+
|
| 60 |
+
```python
|
| 61 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 62 |
+
|
| 63 |
+
model_id = "CompiwerAI/Mtrini-27B-Tellus-Merged"
|
| 64 |
+
|
| 65 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 66 |
+
|
| 67 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 68 |
+
model_id,
|
| 69 |
+
torch_dtype="auto",
|
| 70 |
+
device_map="auto",
|
| 71 |
+
)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
For large-model inference, substantial GPU or CPU memory may be required.
|