Views
No views yet
ornith-ai/Ornith-1.0-9B for engineering QA style responses.ornith-ai/Ornith-1.0-9B + Epoch 2 QLoRA adapter (checkpoint-1072) -> Ornith-1.0-9B-Engineering-LoRAornith-ai/Ornith-1.0-9B.checkpoint-1072)| Epoch | Validation loss |
|---|---|
| 1 | 1.3532 |
| 2 | 1.2940 |
| 3 | 1.4327 |
| Model | Exact match | Normalized exact match | Token F1 |
|---|---|---|---|
| Base Ornith-1.0-9B | 0.0000 | 0.0000 | 0.1312 |
| Epoch 2 adapter | 0.0022 | 0.0022 | 0.3272 |
| Epoch 3 adapter | 0.0033 | 0.0033 | 0.2942 |
| Merged Epoch 2 model | 0.0055 | 0.0055 | 0.3429 |
1from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
2from peft import PeftModel
3import torch
4
5base_model = "ornith-ai/Ornith-1.0-9B"
6adapter = "Sara121/Ornith-1.0-9B-Engineering-LoRA"
7
8tokenizer = AutoTokenizer.from_pretrained(base_model, trust_remote_code=True)
9model = AutoModelForCausalLM.from_pretrained(
10 base_model,
11 trust_remote_code=True,
12 device_map="auto",
13 torch_dtype=torch.bfloat16,
14)
15model = PeftModel.from_pretrained(model, adapter)
16model.eval()<think>...</think> reasoning before the final answer.