Views
No views yet
| Metric | Base | Fine-tuned |
|---|---|---|
| Overall weighted score | 0.355 | 0.343 |
| QA ROUGE-L | 0.1336 | 0.1869 |
| QA BERTScore | 0.8108 | 0.8475 |
| CoT ROUGE-L | 0.1261 | 0.1972 |
| Hallucination pass rate | 80.0% | 26.7% |
| Training loss | -- | 1.576 |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model = AutoModelForCausalLM.from_pretrained("AshkanTaghipour/GeoLLM-Qwen3.5-2B", torch_dtype="bfloat16", device_map="auto")
4tokenizer = AutoTokenizer.from_pretrained("AshkanTaghipour/GeoLLM-Qwen3.5-2B")
5
6messages = [
7 {"role": "system", "content": "You are a specialist geologist with expertise in Western Australian mineral exploration."},
8 {"role": "user", "content": "What geophysical methods would you recommend for targeting komatiite-hosted nickel sulphide deposits in the Eastern Goldfields?"},
9]
10
11text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True, enable_thinking=False)
12inputs = tokenizer(text, return_tensors="pt").to(model.device)
13outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.6, top_p=0.95)
14print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))