Instructions to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF", dtype="auto") - llama-cpp-python
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF", filename="Mistral7B-NaturalFarmerV4-unsloth.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
Use Docker
docker model run hf.co/CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with Ollama:
ollama run hf.co/CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
- Unsloth Studio new
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF to start chatting
- Docker Model Runner
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with Docker Model Runner:
docker model run hf.co/CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
- Lemonade
How to use CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Mistral7B-NaturalFarmerV4-GGUF-Q4_K_M
List all available models
lemonade list
Mistral 7B Natural Farmer V4
- Developed by: Caleb DeLeeuw, Copyleft Cultivars (a nonprofit, protecting and preserving vulnerable plants)
- License: apache-2.0
- Finetuned from model : unsloth/mistral-7b-instruct-v0.2-bnb-4bit
Background: Using real-world user data from a previous farmer assistant chatbot service and additional curated datasets (prioritizing sustainable regenerative organic farming practices,) Gemma 2B and Mistral 7B LLMs were iteratively fine-tuned and tested against eachother as well as basic benchmarking, whereby the Gemma 2B fine-tune emerged victorious. LORA adapters were saved for each model. Following this, the Gemma version was released.
Updates for this model: We then revisited the data, adding four additional months of real-world in-field data from hundreds of users which was then editted by a domain expert in regenerative farming and natural farming (approximately 2,000 instruct examples.) This was combined with a small portion of synthetic datasets and semisynthetic datasets related to regenerative agriculture and natural farming, including some non-english language samples. The results were far superior to our previous releases of Natural Farming Gemma and Mistral fine-tunes. This Natural Farming Mistral 7B fine-tune was the best scoring in our prelim benchmarking, and so it was converted to GGUF and loaded onto Hugging Face Hub as our Natural Farming Mistral V4 in hopes it will help farmers everywhere and inspire future works.
Shout out to roger j (bhugxer) and Steve Raisner for help with currating the dataset.
Testing and further compiling to integrate into on-device app interfaces are ongoing. This project was created by Copyleft Cultivars, a nonprofit, in partnership with Open Nutrient Project and Evergreen State College. This project serves to democratize access to farming knowledge and support the protection of vulnerable plants.
This is V4 beta. It runs locally on Ollama with some expirimental configuring so you can use it off the grid and places where internet is not accessible (ie most farms I've been on.)
This mistral model was trained with Unsloth and Huggingface's TRL library.
- Downloads last month
- 185
4-bit
Model tree for CopyleftCultivars/Mistral7B-NaturalFarmerV4-GGUF
Base model
unsloth/mistral-7b-instruct-v0.2-bnb-4bit
