Downloads · 30 days
19
13% of all-time downloads
birgermoell/gemma-2-2b-it-4bit-eir-swedish
gemma-2-2b-it-4bit-eir-swedish is a text generation model from birgermoell. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as gemma.
This is a public MLX-fused Swedish fine-tune of mlx-community/gemma-2-2b-it-4bit for the Eir app.
Downloads · 30 days
19
13% of all-time downloads
All-time downloads
150
Public
Parameters
2.6B
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 97%
How the weights are stored.
U322.6B · 100%
From the Hugging Face model README
This is a public MLX-fused Swedish fine-tune of mlx-community/gemma-2-2b-it-4bit for the Eir app.
The model was fine-tuned to help users make sense of Swedish clinical notes in .eir-style records. The intended behavior is:
<JOURNAL_ENTRY id="..."/> where possiblemlx-community/gemma-2-2b-it-4bitLoRAmlx-lm.eir timelines and supervised answers31 train / 5 valid / 6 testThis repository contains the fused model weights, so it can be loaded directly by MLX clients without a separate adapter step.
Held-out synthetic test split:
token_f1=0.2351, citation_f1=0.0000token_f1=0.2874, citation_f1=0.3333These numbers are small-sample and synthetic-only, but they were enough to confirm the fine-tune learned task-specific citation and note-explanation behavior.
from mlx_lm import load, generate
model, tokenizer = load("birgermoell/gemma-2-2b-it-4bit-eir-swedish")
messages = [
{
"role": "user",
"content": "Förklara journalanteckningen på enkel svenska och säg vad som verkar viktigast att följa upp."
}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
response = generate(model, tokenizer, prompt=prompt, max_tokens=256, verbose=False)
print(response)
In Eir Settings:
SettingsAdd Model...birgermoell/gemma-2-2b-it-4bit-eir-swedishThe app can then download and load this model as an on-device MLX model.