Views
No views yet
⚠️ Medical safety: This model is not a clinician. It may hallucinate and should not be used for diagnosis or treatment. Always seek qualified medical supervision.
<tool_call>, </tool_call>, etc.).merge_method: arcee_fusion.All results below were run with the author’s harness; they will differ from LiquidAI’s internal suite and Open LLM Leaderboard settings.
| Benchmark | lfm2-350M-med | LFM2-350M (same harness) |
|---|---|---|
| MMLU-Pro | 19.46 | 18.76 |
| IFEVAL | 52.595 | 61.72 |
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_id = "mkurman/lfm2-350M-med"
4tok = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="bfloat16")
6
7messages = [
8 {"role": "system", "content": "You are a careful medical assistant. Cite sources and warn that outputs are not medical advice."},
9 {"role": "user", "content": "Briefly explain the difference between cellulitis and erysipelas."}
10]
11
12prompt = tok.apply_chat_template(messages, add_generation_prompt=True, tokenize=False)
13out = model.generate(**tok(prompt, return_tensors="pt"), max_new_tokens=256)
14print(tok.decode(out[0], skip_special_tokens=True))