Views
No views yet
deadbear34/qwen35-4b-plantdisease-cptdeadbear34/qwen35-4b-plantdisease-sft-loraQwen/Qwen3.5-4B-Base (original Qwen, vocab=248,044)1from transformers import AutoTokenizer, AutoModelForImageTextToText
2import torch
3
4model_id = "deadbear34/qwen35-4b-plantdisease-merged"
5
6tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
7model = AutoModelForImageTextToText.from_pretrained(
8 model_id,
9 torch_dtype=torch.bfloat16,
10 device_map="cuda",
11 trust_remote_code=True,
12)
13
14prompt = "<|user|>
15Apa penyebab late blight pada tomat?
16<|assistant|>
17"
18inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
19output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
20print(tokenizer.decode(output[0], skip_special_tokens=True))| Benchmark | Score | Notes |
|---|---|---|
| GSM8K (n=300) | 90.00% | Math reasoning with thinking format |
| MMLU (12 subjects, n=1000) | 76.00% | Biology/medical-skewed subset |
| HumanEval (full 164) | 42.68% | Coding (regressed from base) |
| TruthfulQA-MC1 (n=300) | 57.00% | Truthfulness |
| PlantDisease ROUGE-1 (n=100) | 38.39% | Domain-specific, EN+ID |