Downloads · 30 days
110
10% of all-time downloads
Cloudsurfer48902/Agronexus-4bit
Agronexus-4bit is a machine learning model from Cloudsurfer48902. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
- Developed by: William Obino - Model Type: Causal Language Model - Language(s): English - Base Model: unsloth/llama-2-7b-bnb-4bit - License: Apache 2.0 - Finetuned with: Unsloth and Hugging Face's TRL library
Downloads · 30 days
110
10% of all-time downloads
All-time downloads
1.1K
Public
Repo size
17.6 GB
Likes
1
Public
Click a slice to open those files.
.gguf17.6 GB · 100%
From the Hugging Face model README
Agronexus is a specialized AI model designed to provide agricultural recommendations for Kenya. It takes into account specific weather conditions, soil properties, and local agricultural knowledge to suggest suitable crops and farming practices.
Quantized using the "q4_k_m" method for size reduction, resulting in a final model size of ~3.89 GB.
The model expects input in the following format:
You are an expert agricultural advisor specializing in Kenyan agriculture. It is [current date]. Given the following weather and soil conditions for [location], Kenya, provide a recommendation for one (1) distinct crop suitable for growing. The location has a [climate type] climate.
Weather:
- Current Description: [weather description]
- Current Temperature: [temperature]°C
- Average Annual Temperature (5-year): [average temp]°C
- Average Annual Precipitation (5-year): [average precipitation] mm
- 14-Day Forecast:
- Average Max Temperature: [max temp]°C
- Average Min Temperature: [min temp]°C
- Total Precipitation: [precipitation] mm
Soil Properties:
- clay: [percentage]%
- sand: [percentage]%
- silt: [percentage]%
- phh2o: [pH level]
- cec: [CEC value] cmol/kg
Consider the specific Kenyan climate, local soil composition, and pH level when selecting the crop and providing advice. Ensure the recommendation is tailored to the given conditions. Output the recommendation in the following JSON format ONLY!
The model will return a JSON object with the following structure:
{
"Crop": "Recommended crop name",
"Planting Date": "Specific months based on Kenyan growing seasons",
"Harvesting Time": "Estimated number of months after planting",
"Farm Inputs": [
{"Type": "Input type", "Description": "Detailed description of input"}
],
"Best Care Methods": "Detailed care tips tailored to Kenyan weather patterns",
"Cost Cutting Measures": "Detailed cost-saving measures relevant to Kenyan agriculture",
"Expected Yield": "Estimated yield per hectare",
"Market Potential": "Brief overview of market demand and potential profit",
"Environmental Impact": "Brief description of the crop's environmental impact",
"Crop Rotation Suggestions": "Suggestions for crop rotation to maintain soil health",
"Pest and Disease Management": "Common pests/diseases and management strategies",
"Water Management": "Irrigation requirements and water conservation techniques",
"Soil Management": "Techniques to maintain or improve soil quality for this crop"
}
To use this model with the Hugging Face Transformers library:
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "Cloudsurfer48902/agronexus"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "You are an expert agricultural advisor specializing in Kenyan agriculture. It is 30 August 2024. Given the following weather and soil conditions for Nairobi, Kenya, provide a recommendation for one (1) distinct crop suitable for growing. The location has a semi-arid climate. Weather: - Current Description: partly cloudy - Current Temperature: 22°C - Average Annual Temperature (5-year): 19°C - Average Annual Precipitation (5-year): 850 mm - 14-Day Forecast: - Average Max Temperature: 25°C - Average Min Temperature: 14°C - Total Precipitation: 20 mm Soil Properties: - clay: 35% - sand: 40% - silt: 25% - phh2o: 6.2 - cec: 18 cmol/kg Consider the specific Kenyan climate, local soil composition, and pH level when selecting the crop and providing advice. Ensure the recommendation is tailored to the given conditions. Output the recommendation in the following JSON format ONLY!"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=1000, temperature=0.7)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Note: Adjust the max_length and temperature parameters as needed for your specific use case.
William Obino
See "Model Details" section for contact information.