Downloads · 30 days
2
2% of all-time downloads
AgroguardAI/clm-agricultural-gpt2-lora
clm-agricultural-gpt2-lora is a text generation model from AgroguardAI. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as mit.
A GPT-2 causal language model fine-tuned with LoRA (Low-Rank Adaptation) on agricultural domain text. This adapter is trained to generate coherent agricultural and farming-related text.
Downloads · 30 days
2
2% of all-time downloads
All-time downloads
113
Public
Repo size
3.3 MB
Likes
1
Public
Click a slice to open those files.
.json3.6 MB · 52%
From the Hugging Face model README
A GPT-2 causal language model fine-tuned with LoRA (Low-Rank Adaptation) on agricultural domain text. This adapter is trained to generate coherent agricultural and farming-related text.
| Parameter | Value |
|---|---|
| PEFT Type | LORA |
| Rank (r) | 4 |
| Alpha | 8 |
| Dropout | 0.05 |
| Target Modules | c_proj, c_attn |
| Fan-in/Fan-out | True |
| PEFT Version | 0.19.1 |
This adapter can be loaded with the base GPT-2 model for agricultural text generation tasks including:
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2")
tokenizer = AutoTokenizer.from_pretrained("AgroguardAI/clm-agricultural-gpt2-lora")
tokenizer.pad_token = tokenizer.eos_token
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "AgroguardAI/clm-agricultural-gpt2-lora")
# Generate text
inputs = tokenizer("In modern agriculture,", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
The model was fine-tuned on the AgroGuardAI Agricultural QA Dataset, which contains agricultural domain text covering farming practices, crop management, soil science, and agricultural technology.
This model is specialized for the agricultural domain. It may not perform well on general-purpose text or topics outside its training data. Users should evaluate outputs for accuracy in production agricultural applications.
@misc{agroguardai-clm-gpt2-lora,
author = {AgroGuardAI},
title = {CLM Agricultural GPT-2 LoRA Adapter},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/AgroguardAI/clm-agricultural-gpt2-lora}}
}