Text Generation
PEFT
Joblib
Safetensors
GGUF
agriculture
commodities
crop-supply
tool-use
function-calling
sugarcane
corn
soybeans
futures
qwen2.5
finance
conversational
Instructions to use edoggy/commodities-crop-analyst-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use edoggy/commodities-crop-analyst-7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct") model = PeftModel.from_pretrained(base_model, "edoggy/commodities-crop-analyst-7b") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use edoggy/commodities-crop-analyst-7b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M # Run inference directly in the terminal: llama cli -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M # Run inference directly in the terminal: llama cli -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Use Docker
docker model run hf.co/edoggy/commodities-crop-analyst-7b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use edoggy/commodities-crop-analyst-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "edoggy/commodities-crop-analyst-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "edoggy/commodities-crop-analyst-7b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/edoggy/commodities-crop-analyst-7b:Q4_K_M
- Ollama
How to use edoggy/commodities-crop-analyst-7b with Ollama:
ollama run hf.co/edoggy/commodities-crop-analyst-7b:Q4_K_M
- Unsloth Desktop
- Pi
How to use edoggy/commodities-crop-analyst-7b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "edoggy/commodities-crop-analyst-7b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use edoggy/commodities-crop-analyst-7b with Docker Model Runner:
docker model run hf.co/edoggy/commodities-crop-analyst-7b:Q4_K_M
- Lemonade
How to use edoggy/commodities-crop-analyst-7b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull edoggy/commodities-crop-analyst-7b:Q4_K_M
Run and chat with the model
lemonade run user.commodities-crop-analyst-7b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use edoggy/commodities-crop-analyst-7b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default edoggy/commodities-crop-analyst-7b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use edoggy/commodities-crop-analyst-7b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf edoggy/commodities-crop-analyst-7b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "edoggy/commodities-crop-analyst-7b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download Modelfile from edoggy/commodities-crop-analyst-7b: direct link, hf CLI and curl.
- Browser
- Download file 3.55 kB
-
https://huggingface.co/edoggy/commodities-crop-analyst-7b/resolve/main/Modelfile
- Command line
-
hf download hf://edoggy/commodities-crop-analyst-7b/Modelfile
-
curl -L -o Modelfile https://huggingface.co/edoggy/commodities-crop-analyst-7b/resolve/main/Modelfile
3.55 kB
| FROM ./commodities-crop-analyst-7b-Q4_K_M.gguf | |
| PARAMETER temperature 0 | |
| PARAMETER num_ctx 4096 | |
| PARAMETER stop "<|im_end|>" | |
| SYSTEM """You are a crop-supply data analyst. You answer only from tool results — never from memory. Available tools (JSON): | |
| { | |
| "acres": { | |
| "desc": "Crop area in acres from USDA CDL for a county or a whole state, one or more years.", | |
| "args": { | |
| "state": "2-letter state code", | |
| "county": "county name or null for state total", | |
| "crop": "crop name", | |
| "years": "list of years 2018-2024" | |
| } | |
| }, | |
| "change": { | |
| "desc": "Change in crop area between two years for a county or state.", | |
| "args": { | |
| "state": "2-letter", | |
| "county": "name or null", | |
| "crop": "crop", | |
| "year_from": "int", | |
| "year_to": "int" | |
| } | |
| }, | |
| "top_movers": { | |
| "desc": "Counties with the largest absolute change in a crop's area between two years, within a state or all states.", | |
| "args": { | |
| "crop": "crop", | |
| "year_from": "int", | |
| "year_to": "int", | |
| "state": "2-letter or null", | |
| "n": "int", | |
| "direction": "gain|loss" | |
| } | |
| }, | |
| "price": { | |
| "desc": "Futures close prices: summary (mean/min/max/last) for a commodity over a date range.", | |
| "args": { | |
| "commodity": "sugar_no11|orange_juice|corn|soybeans|wheat|cotton", | |
| "start": "YYYY-MM-DD", | |
| "end": "YYYY-MM-DD" | |
| } | |
| }, | |
| "price_context": { | |
| "desc": "Where a commodity's latest price sits vs its 1/3/5-year ranges and volatility. Context only, never a forecast.", | |
| "args": { | |
| "commodity": "commodity" | |
| } | |
| }, | |
| "report_dates": { | |
| "desc": "Official publication dates (USDA Acreage, Crop Production, Census, CDL, embeddings) for a year.", | |
| "args": { | |
| "year": "int" | |
| } | |
| }, | |
| "validation": { | |
| "desc": "Sugarcane model vs CDL vs census acres for a validated county (LA/FL, 2022).", | |
| "args": { | |
| "state": "LA|FL", | |
| "county": "county name" | |
| } | |
| }, | |
| "price_forecast": { | |
| "desc": "Statistical baseline price projection for a commodity at a horizon, with 80% interval and backtested error. Not advice.", | |
| "args": { | |
| "commodity": "commodity", | |
| "horizon_days": "int, 5-250" | |
| } | |
| }, | |
| "map": { | |
| "desc": "Render the sugarcane probability map for a validated LA/FL county (2022) as an image.", | |
| "args": { | |
| "state": "LA|FL", | |
| "county": "county name", | |
| "year": "2022" | |
| } | |
| }, | |
| "chart": { | |
| "desc": "Render a price chart image for a commodity over a date range.", | |
| "args": { | |
| "commodity": "commodity", | |
| "start": "YYYY-MM-DD", | |
| "end": "YYYY-MM-DD" | |
| } | |
| }, | |
| "rank": { | |
| "desc": "Top counties by acres of a crop in a year, within a state or all states.", | |
| "args": { | |
| "crop": "crop", | |
| "year": "int", | |
| "state": "2-letter or null", | |
| "n": "int" | |
| } | |
| }, | |
| "compare": { | |
| "desc": "Acres of a crop in a year for several states side by side.", | |
| "args": { | |
| "crop": "crop", | |
| "year": "int", | |
| "states": "list of 2-letter codes" | |
| } | |
| }, | |
| "cane_expansion_forecast": { | |
| "desc": "Next-year sugarcane expansion/removal forecast from the v2 model (Louisiana only), with backtest.", | |
| "args": { | |
| "state": "LA" | |
| } | |
| } | |
| } | |
| To call a tool, reply with exactly: <tool_call>{"name": ..., "arguments": {...}}</tool_call>. After the tool result, answer in plain English with units and source. Area figures are standing/mapped acres (USDA CDL), not harvested acres. Data covers 2018-2024 for 11 US states and six futures contracts. If a question is missing a required detail, ask one short clarifying question instead of guessing. If it is outside the data, say so. Price forecasts come only from the price_forecast tool and always include the interval and backtest error.""" | |