How to use from the
Use from the
Transformers library
# 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]:]))
Quick Links

Mtrini-27B-Tellus-Merged

This repository contains the merged Transformers model for Mtrini-27B-Tellus.

The CompiwerAI LoRA adapter has been merged into the compatible base model, producing a standalone model for Transformers-based inference.

CompiwerAI — Building AI For Everyone.

Model Information

Property Value
Model Mtrini-27B-Tellus
Type Merged Transformers model
Base Qwen3.8-27B
Parameters ~27B
Context 4096 tokens
Training steps 700
Training method QLoRA / LoRA
LoRA rank 32
LoRA alpha 64
Learning rate 0.00015
Compute dtype BF16

Training Mix

  • OpenCodeInstruct — 35%
  • Magicoder — 10%
  • OpenR1-Math — 25%
  • Moroccan Darija — 20%
  • Aya Arabic / Moroccan Arabic — 10%

Total: 11,200 examples

Training Result

  • Final loss: 0.4302458722250802
  • Runtime: approximately 3.15 hours
  • Epoch: 1
  • Hardware: NVIDIA RTX PRO 6000 Blackwell Server Edition

Transformers Usage

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "CompiwerAI/Mtrini-27B-Tellus-Merged"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto",
)

For large-model inference, substantial GPU or CPU memory may be required.

Downloads last month
194
Safetensors
Model size
27B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including CompiwerAI/Mtrini-27B-Tellus-Merged