Views
No views yet
| Model | Base | Training Data | Description |
|---|---|---|---|
7b_radiologist1 | BLOOMZ-7B | ~3,000 reports | Expert-specific model for Radiologist 1 |
7b_radiologist4 | BLOOMZ-7B | ~5,000 reports | Expert-specific model for Radiologist 4 |
7b_radiologist5 | BLOOMZ-7B | ~2,175 reports | Expert-specific model for Radiologist 5 |
| Model | Base | Training Data | Description |
|---|---|---|---|
3b_radiologist1 | BLOOMZ-3B | ~3,000 reports | Compact expert-specific model for Radiologist 1 |
3b_radiologist4 | BLOOMZ-3B | ~5,000 reports | Compact expert-specific model for Radiologist 4 |
3b_radiologist5 | BLOOMZ-3B | ~2,175 reports | Compact expert-specific model for Radiologist 5 |
| Model | Base | Epochs | Description |
|---|---|---|---|
bloom_1b1_3 | BLOOMZ-1B | 3 | Benchmark SFT model (1B params, 3 epochs) |
bloom_1b1_16 | BLOOMZ-1B | 16 | Benchmark SFT model (1B params, 16 epochs) |
bloom_3b_3 | BLOOMZ-3B | 3 | Benchmark SFT model (3B params, 3 epochs) |
bloom_3b_16 | BLOOMZ-3B | 16 | Benchmark SFT model (3B params, 16 epochs) |
| Model | Base | PPO Steps | Description |
|---|---|---|---|
rlhf_checkpoint-80 | BLOOMZ-3B | 80 | RLHF-refined model (early checkpoint) |
rlhf_checkpoint-120 | BLOOMZ-3B | 120 | RLHF-refined model (optimal checkpoint) |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load model and tokenizer
4model_name = "your-org/7b_radiologist1" # Replace with actual path
5tokenizer = AutoTokenizer.from_pretrained(model_name)
6model = AutoModelForCausalLM.from_pretrained(model_name)
7
8# Prepare input with prompt template
9findings = "肝脏大小形态正常,实质内未见明确异常密度影。胆囊大小正常,壁不厚,腔内未见明确异常密度影。"
10
11prompt = f"According to the following medical imaging description: {findings} Generate a corresponding CT image impression:"
12
13# Generate impression
14inputs = tokenizer(prompt, return_tensors="pt")
15outputs = model.generate(
16 **inputs,
17 max_new_tokens=256,
18 do_sample=True,
19 temperature=0.7,
20 top_p=0.9
21)
22impression = tokenizer.decode(outputs[0], skip_special_tokens=True)
23print(impression)| Parameter | SFT (Benchmark/Expert) | RLHF (PPO) |
|---|---|---|
| Base Model | BLOOMZ-1B/3B/7B | BLOOMZ-3B |
| Learning Rate | 2×10⁻⁵ | 1.41×10⁻⁵ |
| LR Schedule | Cosine decay | Constant |
| Batch Size | 8 | 256 |
| Gradient Accumulation | 16 | 1 |
| Max Sequence Length | 2048 | 2048 |
| Weight Decay | 0.01 | 0 |
| Dropout | 0.1 | 0.1 |
| Epochs | 16 | — |
| PPO Epochs | — | 4 |
| PPO Clip Range | — | 0.2 |
| Model Type | BLEU-4 | ROUGE-L F1 | BERTScore F1 |
|---|---|---|---|
| Expert-Specific (7B) | 0.58–0.65 | 0.71–0.77 | 0.69 |
| Benchmark SFT (3B) | 0.68–0.70 | 0.81–0.82 | 0.69–0.70 |
| RLHF (3B) | 0.65–0.68 | 0.78–0.80 | 0.97 |
| GPT-4 | 0.03 | 0.13 | 0.74 |
| Baidu Qianfan | 0.05 | 0.20 | 0.69 |