Downloads · 30 days
87
10% of all-time downloads
doggydon007/Ornith-1.0-9B-Hardware-Expert-fp16
Ornith-1.0-9B-Hardware-Expert-fp16 is a text generation model from doggydon007. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned hardware engineering expert — low-level hardware code, driver development, embedded systems, RTL design, and electronics engineering.
Downloads · 30 days
87
10% of all-time downloads
All-time downloads
850
Public
Parameters
9B
7.7 GB on disk
Likes
8
Public
Click a slice to open those files.
.safetensors7.6 GB · 100%
How the weights are stored.
U86.9B · 77%
From the Hugging Face model README
Fine-tuned hardware engineering expert — low-level hardware code, driver development, embedded systems, RTL design, and electronics engineering.
| Property | Value |
|---|---|
| Base Model | Ornith-1.0-9B-Heretic-Uncensored |
| Architecture | Qwen3.5ForConditionalGeneration (decoder-only) |
| Parameters | 9B |
| Precision | bfloat16 |
| Context Length | 262144 + our training token 8192 |
| License | Apache 2.0 |
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "fe-dev-dl/Ornith-1.0-9B-Hardware-Expert-fp16"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True,
)
prompt = "### Instruction\nWrite an STM32 SPI driver in C that initializes SPI1 in master mode at 1MHz\n### Response\n"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
outputs = model.generate(**inputs, max_new_tokens=1024, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
4-Bit Quantization (low-memory GPUs)
from transformers import BitsAndBytesConfig
quant = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True, bnb_4bit_quant_type="nf4")
model = AutoModelForCausalLM.from_pretrained(
model_name, quantization_config=quant, device_map="auto", trust_remote_code=True
)
Training
Fine-tuned on grand-master-hardware-expert using QLoRA (r=16, alpha=32, q_proj+v_proj) with 4-bit NF4 quantization and 8192 context length.
Why bfloat16?
The original base model is float32 (18.8 GB). This merged version is bfloat16 (7.66 GB) — half the storage, identical inference quality, faster loading. No parameters removed, zero precision loss.
License
Apache 2.0 ```