Downloads · 30 days
6
15% of all-time downloads
Shengbo-Ma/CapraMind-V1-small
CapraMind-V1-small is a machine learning model from Shengbo-Ma. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A Specialized Large Language Model for Dairy Goat Farming Management
Downloads · 30 days
6
15% of all-time downloads
All-time downloads
40
Public
Parameters
1.7B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
A Specialized Large Language Model for Dairy Goat Farming Management
CapraMind-V1-small is a lightweight, domain-specific language model fine-tuned on high-quality dairy goat husbandry knowledge. It provides accurate, safe, and practical guidance on nutrition, reproduction, disease prevention, milking, and daily management—tailored for farmers, veterinarians, and agricultural extension workers.
✅ Expert-Level Knowledge
Covers core topics:
✅ Safety-First Design
✅ Lightweight & Deployable
pip install transformers accelerate torch sentencepiece
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "CapraMind-V1-small"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_name,
trust_remote_code=True,
device_map="auto",
torch_dtype="auto"
)
model.eval()
prompt = "奶山羊产后瘫痪的紧急处理措施是什么?"
messages = [
{"role": "system", "content": "你是一名资深奶山羊兽医,请基于专业规范回答。"},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, do_sample=False)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
💡 Note: Use the Qwen chat template (
tokenizer.apply_chat_template) for best results.
| Metric | Value |
|---|---|
| Final Training Loss | 1.55 |
| Validation Loss | 1.58 (on held-out 10% data) |
| Accuracy (Expert Eval, n=50) | 92% (factual correctness) |
| Hallucination Rate | 3% (mostly on rare diseases) |
Evaluated by 2 certified livestock veterinarians on real-world farmer questions.
This model is released under the MIT License.
⚠️ Important Note:
This model is built upon Qwen3-1.7B-Base, which is licensed under Alibaba’s Qwen License.
The MIT license applies only to the LoRA adapter weights and training code in this repository.
You must comply with Qwen3’s license terms when using or redistributing the base model.In practice:
- You may deploy CapraMind-V1-small in your app or service.
- But you must not redistribute Qwen3-1.7B-Base unless you comply with Alibaba’s terms (e.g., attribution, non-resale of base weights).
For commercial deployment, we recommend using only the LoRA adapter alongside a legally obtained Qwen3 base model.