Downloads · 30 days
10
23% of all-time downloads
Miki-T/JARVIS-Mistral-Phase1b
JARVIS-Mistral-Phase1b is a text generation model from Miki-T. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
Downloads · 30 days
10
23% of all-time downloads
All-time downloads
43
Public
Repo size
83.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors83.9 MB · 96%
From the Hugging Face model README
Model ID: Miki-T/JARVIS-Mistral-Phase1b
A QLoRA fine-tuned Mistral 7B model trained on 134k Macedonian instruction-following examples to teach the model to understand and respond to instructions in Macedonian. This is Phase 1b of the JARVIS training pipeline — a locally-hosted AI assistant inspired by Iron Man's JARVIS.
This model is designed for:
Example usage:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import AutoPeftModelForCausalLM
model = AutoPeftModelForCausalLM.from_pretrained(
"Miki-T/JARVIS-Mistral-Phase1b",
device_map="auto",
torch_dtype="auto",
)
model = model.merge_and_unload()
tokenizer = AutoTokenizer.from_pretrained("Miki-T/JARVIS-Mistral-Phase1b")
prompt = "[INST] Објасни што е вештачка интелигенција на едноставен начин. [/INST]"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Dataset | Rows | Source | Purpose |
|---|---|---|---|
| LVSTCK/sft-mk | 113,000 | HuggingFace | Macedonian instruction-response pairs |
| LVSTCK/ultrachat-sft-mk | 16,200 | HuggingFace | Multi-turn Macedonian conversations |
| LVSTCK/Open-Platypus-MK | 5,040 | HuggingFace | High-quality reasoning and instruction pairs |
| Total | 134,240 |
| Parameter | Value |
|---|---|
| Learning rate | 6e-5 |
| Warmup ratio | 5% |
| Learning rate scheduler | Cosine decay |
| Batch size | 2 |
| Gradient accumulation | 4 |
| Epochs | 2 |
| Optimization | AdamW (8-bit) |
| Gradient checkpointing | Disabled |
| Metric | Value |
|---|---|
| Training duration | 4 days, 20 hours, 2 minutes |
| Total steps | 15,498 (2 epochs) |
| Throughput | ~91 tokens/second |
| Adapter size | ~84 MB |
| Total VRAM used | ~4.8 GB / 12 GB |
| Total tokens processed | 38.2M tokens |
| Metric | Epoch 1 | Epoch 2 | Final |
|---|---|---|---|
| Loss | 0.7157 | 0.6227 | 0.4844 |
| Perplexity | 2.05 | 1.86 | 1.62 |
| Gradient norm (avg) | — | — | 1.246 |
| Gradient norm (max) | — | — | 3.141 |
Prompt: [INST] Напиши кратко резиме за Скопје. [/INST]
Output: Скопје е главниот и најголемиот град на Северна Македонија. Се наоѓа во центарот на земјата, на реката Вардар...
Interpretation: Follows instruction format, responds in Macedonian, maintains topic correctly.
| Factor | Value |
|---|---|
| Hardware | NVIDIA RTX 5070 (12GB VRAM) |
| Training duration | 4 days, 20 hours |
| Power consumption (estimated) | ~150W x 116 hours = 17.4 kWh |
| Carbon emitted (estimated) | ~8-12 kg CO2e |
| Cloud provider | None (local desktop GPU) |
from peft import AutoPeftModelForCausalLM
from transformers import AutoTokenizer
import torch
model = AutoPeftModelForCausalLM.from_pretrained(
"Miki-T/JARVIS-Mistral-Phase1b",
device_map="auto",
torch_dtype=torch.float16,
)
model = model.merge_and_unload()
tokenizer = AutoTokenizer.from_pretrained("Miki-T/JARVIS-Mistral-Phase1b")
prompt = "[INST] Објасни ми ги предностите на соларната енергија. [/INST]"
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=512)
input_ids = inputs["input_ids"].to(model.device)
with torch.no_grad():
output_ids = model.generate(
input_ids,
max_new_tokens=200,
temperature=0.7,
top_p=0.9,
do_sample=True,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(output_ids[0], skip_special_tokens=True))
@misc{trajkovski2026jarvis_phase1b,
author = {Trajkovski, Miki},
title = {JARVIS: Macedonian Instruction Following (Phase 1b)},
year = {2026},
publisher = {Hugging Face Hub},
howpublished = {\url{https://huggingface.co/Miki-T/JARVIS-Mistral-Phase1b}},
}
This model is provided under the MIT License, same as the JARVIS project.