Instructions to use QuantFactory/HelpingAI-Lite-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/HelpingAI-Lite-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/HelpingAI-Lite-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/HelpingAI-Lite-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/HelpingAI-Lite-GGUF", filename="HelpingAI-Lite.Q2_K.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 QuantFactory/HelpingAI-Lite-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/HelpingAI-Lite-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 QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/HelpingAI-Lite-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 QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/HelpingAI-Lite-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 QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/HelpingAI-Lite-GGUF with Ollama:
ollama run hf.co/QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/HelpingAI-Lite-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 QuantFactory/HelpingAI-Lite-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 QuantFactory/HelpingAI-Lite-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/HelpingAI-Lite-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/HelpingAI-Lite-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/HelpingAI-Lite-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/HelpingAI-Lite-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.HelpingAI-Lite-GGUF-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)QuantFactory/HelpingAI-Lite-GGUF
This is quantized version of OEvortex/HelpingAI-Lite created using llama.cpp
Original Model Card
HelpingAI-Lite
Subscribe to my YouTube channel
GGUF version here
HelpingAI-Lite is a lite version of the HelpingAI model that can assist with coding tasks. It's trained on a diverse range of datasets and fine-tuned to provide accurate and helpful responses.
License
This model is licensed under MIT.
Datasets
The model was trained on the following datasets:
- cerebras/SlimPajama-627B
- bigcode/starcoderdata
- HuggingFaceH4/ultrachat_200k
- HuggingFaceH4/ultrafeedback_binarized
Language
The model supports English language.
Usage
CPU and GPU code
from transformers import pipeline
from accelerate import Accelerator
# Initialize the accelerator
accelerator = Accelerator()
# Initialize the pipeline
pipe = pipeline("text-generation", model="OEvortex/HelpingAI-Lite", device=accelerator.device)
# Define the messages
messages = [
{
"role": "system",
"content": "You are a chatbot who can help code!",
},
{
"role": "user",
"content": "Write me a function to calculate the first 10 digits of the fibonacci sequence in Python and print it out to the CLI.",
},
]
# Prepare the prompt
prompt = pipe.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
# Generate predictions
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
# Print the generated text
print(outputs[0]["generated_text"])
- Downloads last month
- 229
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Datasets used to train QuantFactory/HelpingAI-Lite-GGUF
bigcode/starcoderdata
HuggingFaceH4/ultrafeedback_binarized
Evaluation results
- Epochself-reported3.000
- Eval Logits/Chosenself-reported-2.707
- Eval Logits/Rejectedself-reported-2.657
- Eval Logps/Chosenself-reported-370.130
- Eval Logps/Rejectedself-reported-296.074
- Eval Lossself-reported0.514
- Eval Rewards/Accuraciesself-reported0.738
- Eval Rewards/Chosenself-reported-0.027
- Eval Rewards/Marginsself-reported1.009
- Eval Rewards/Rejectedself-reported-1.036
- Eval Runtimeself-reported93.591
- Eval Samplesself-reported2000.000
- Eval Samples per Secondself-reported21.370
- Eval Steps per Secondself-reported0.673
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/HelpingAI-Lite-GGUF", filename="", )