Views
No views yet

<think> tags before generating the final answerNote: L1 reasons internally using<think>...</think>blocks before producing a response. This chain-of-thought process improves answer quality but consumes additional tokens. Setmax_tokensaccordingly (recommended: 2048+).
pip install "sglang[all] @ git+https://github.com/trillion-labs/sglang-gravity.git#subdirectory=python"1python -m sglang.launch_server \
2 --model-path learning-unit/L1-16B-A3B \
3 --port 9006 --host 0.0.0.0 \
4 --tp 1 --dtype bfloat16 --trust-remote-code \
5 --attention-backend triton \
6 --moe-runner-backend triton1curl -X POST http://localhost:9006/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "learning-unit/L1-16B-A3B",
5 "messages": [
6 {"role": "user", "content": "What are the diagnostic criteria for sepsis?"}
7 ],
8 "max_tokens": 2048
9 }'pip install "transformers>=5.0" torch1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model_name = "learning-unit/L1-16B-A3B"
5
6model = AutoModelForCausalLM.from_pretrained(
7 model_name,
8 torch_dtype=torch.bfloat16,
9 device_map="auto",
10 trust_remote_code=True,
11)
12tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
13
14messages = [
15 {"role": "user", "content": "What are the diagnostic criteria for sepsis?"}
16]
17text = tokenizer.apply_chat_template(
18 messages,
19 tokenize=False,
20 add_generation_prompt=True,
21)
22model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
23
24generated_ids = model.generate(
25 **model_inputs,
26 max_new_tokens=2048,
27 temperature=0.7,
28 do_sample=True,
29)
30generated_ids = [
31 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
32]
33
34response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
35print(response)A 45-year-old woman with lupus nephritis on mycophenolate and prednisone develops fever, dry cough, and bilateral ground-glass opacities on chest CT. Her CD4 count is 180. What is your differential diagnosis and recommended workup?
I have diabetes and use insulin daily. What is the proper way to store insulin at home?
Please draft an overnight progress note. Patient labs: RBC 4.5, WBC 8. Vitals: HR 82, BP 118/76, RR 15, Temp 37.1. Nurse reports stable overnight. Plan: continue antibiotics, recheck labs in the morning.
다음 응급실 환자에 대해 KTAS triage를 수행하고, 초기 진단 및 감별진단을 제시해주세요. 78세 여성 환자가 119 구급차로 응급실에 내원했습니다. 22시경 갑자기 좌측 안면이 처지고 말이 어눌해지는 증상이 발생했습니다. 두통을 호소하며, 고혈압 병력이 있습니다. 활력징후는 혈압 172/88, 심박수 92, 호흡수 14, 체온 36.8, 산소포화도 98%이고 의식은 명료합니다. 사지 위약감은 없습니다.
다음 환자의 약물이상반응(ADR)에 대해 WHO-UMC 기준으로 인과관계를 평가해주세요. 80세 여성 환자가 기관지확장증으로 입원 중 moxifloxacin 400mg IV를 투여받았습니다. 투여 중 전신 피부 가려움이 새로 발생했고, 약물 중단 후 환자 본인도 가려움이 줄어드는 양상을 표현했으며 이후 회복되었습니다. 재투여는 시행하지 않았습니다. 기존 약물 알레르기력은 없고, 가려움을 유발할 만한 다른 병용약물이나 피부질환은 확인되지 않았습니다.
1git clone https://github.com/lunit-io/CoEval.git
2cd CoEval| Model | PubMedQA | AttrBench | MedQA | CareQA | HeadQA | MedMCQA | MMLU-Pro (Health) | M-ARC | MetaMedQA | MedHallu | MedCalc | MedBullets 4-opt | MedBullets 5-opt | MedXpertQA-R | MedXpertQA-U | W.Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GPT-OSS-120B | 78.00 | 76.10 | 91.10 | 91.00 | 88.40 | 74.80 | 74.60 | 40.00 | 76.50 | 83.50 | 30.30 | 84.70 | 82.10 | 35.60 | 32.90 | 79.43 |
| GPT-OSS-20B | 75.80 | 74.80 | 83.90 | 84.80 | 83.30 | 65.40 | 70.50 | 31.00 | 70.10 | 81.30 | 29.20 | 73.40 | 70.50 | 24.70 | 21.20 | 73.38 |
| Qwen3.5-122B | 76.40 | 55.68 | 87.80 | 86.40 | 84.00 | 74.40 | 73.00 | 59.00 | 73.90 | 37.50 | 53.70 | 79.20 | 79.50 | 35.90 | 35.30 | 75.08 |
| MedGemma-27B | 73.40 | 74.80 | 84.40 | 85.00 | 83.80 | 71.90 | 73.00 | 48.00 | 69.60 | 81.40 | 24.10 | 73.70 | 68.80 | 19.10 | 20.50 | 73.99 |
| Gemma4-26B-A4B | 76.40 | 72.00 | 81.80 | 84.50 | 82.30 | 67.30 | 73.50 | 67.00 | 71.50 | 86.50 | 45.60 | 73.70 | 67.50 | 45.10 | 39.20 | 75.34 |
| L1-16B-A3B | 84.20 | 78.40 | 85.50 | 88.20 | 85.80 | 76.70 | 74.90 | 82.00 | 73.10 | 76.10 | 43.90 | 78.90 | 70.80 | 27.50 | 29.20 | 77.74 |
| Model | HealthBench-Consensus |
|---|---|
| GPT-OSS-120B | 90.60 |
| GPT-OSS-20B | 78.70 |
| Qwen3.5-122B | 92.20 |
| MedGemma-27B | 90.70 |
| Gemma4-26B-A4B | 92.60 |
| L1-16B-A3B | 93.50 |
1@misc{lunit2026l1,
2 title={L1: The First Clinical Language Model by Lunit},
3 author={Lunit},
4 year={2026},
5 url={https://huggingface.co/learning-unit/L1-16B-A3B}
6}<think> tags increases token consumption and latency compared to non-thinking models of similar size.