Instructions to use cakra84/Agrease-Chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cakra84/Agrease-Chatbot with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cakra84/Agrease-Chatbot", filename="unsloth.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use cakra84/Agrease-Chatbot with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cakra84/Agrease-Chatbot:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cakra84/Agrease-Chatbot:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cakra84/Agrease-Chatbot:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cakra84/Agrease-Chatbot: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 cakra84/Agrease-Chatbot:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cakra84/Agrease-Chatbot: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 cakra84/Agrease-Chatbot:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cakra84/Agrease-Chatbot:Q4_K_M
Use Docker
docker model run hf.co/cakra84/Agrease-Chatbot:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use cakra84/Agrease-Chatbot with Ollama:
ollama run hf.co/cakra84/Agrease-Chatbot:Q4_K_M
- Unsloth Studio new
How to use cakra84/Agrease-Chatbot 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 cakra84/Agrease-Chatbot 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 cakra84/Agrease-Chatbot to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cakra84/Agrease-Chatbot to start chatting
- Docker Model Runner
How to use cakra84/Agrease-Chatbot with Docker Model Runner:
docker model run hf.co/cakra84/Agrease-Chatbot:Q4_K_M
- Lemonade
How to use cakra84/Agrease-Chatbot with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cakra84/Agrease-Chatbot:Q4_K_M
Run and chat with the model
lemonade run user.Agrease-Chatbot-Q4_K_M
List all available models
lemonade list
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
license: apache-2.0 tags:
text-generation
conversational
mistral
fine-tuned
chatbot
bangkit widget:
text: "Hello! I'm looking for recommendations on agricultural products."
Fine-Tuned Mistral Model for Agrease Application This repository contains a fine-tuned version of a Mistral Large Language Model, specifically adapted for the "Agrease" application. The model was developed as part of a capstone project for Bangkit Academy 2024 Batch 2.
The primary goal of this project was to create a specialized conversational AI capable of assisting users within the Agrease application, likely by providing information and recommendations based on data from various marketplaces.
Model Description Base Model: The model is a fine-tuned version of a Mistral v3 Large Language Model.
Fine-tuning Task: The model was fine-tuned for conversational question-answering and recommendations.
Training Data: The training data was collected by scraping various online marketplaces using Python libraries such as BeautifulSoup and Scrapy.
Performance: The fine-tuning process achieved a final training loss of 11%.
Intended Use This model is intended to be used as a chatbot or a conversational agent within a larger application. It can answer user queries, provide product recommendations, and engage in domain-specific conversations related to the "Agrease" application's scope.
How to Use You can use this model with the transformers library for text generation.
from transformers import pipeline
Load the text generation pipeline from the Hugging Face Hub
Replace "your-username/model-name" with the actual model path
generator = pipeline('text-generation', model='your-username/model-name')
Example prompt
prompt = "What are the best fertilizers for rice paddies in a tropical climate?"
Generate a response
response = generator(prompt, max_length=150, num_return_sequences=1)
print(response[0]['generated_text'])
Training Data The dataset used for fine-tuning was created by scraping publicly available data from various e-commerce and marketplace websites. The scraping was performed using custom Python scripts with BeautifulSoup and Scrapy. The collected data was then processed and formatted into a conversational format suitable for training a large language model.
Training Procedure The fine-tuning was performed using the PyTorch framework on the collected dataset. The training focused on minimizing the cross-entropy loss to improve the model's ability to generate relevant and coherent responses in a conversational context. The final model achieved a training loss of 0.11
- Downloads last month
- 296
4-bit