Instructions to use iFaz/llama32_3B_en_emo_v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iFaz/llama32_3B_en_emo_v3 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("iFaz/llama32_3B_en_emo_v3", dtype="auto") - llama-cpp-python
How to use iFaz/llama32_3B_en_emo_v3 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="iFaz/llama32_3B_en_emo_v3", filename="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 Settings
- llama.cpp
How to use iFaz/llama32_3B_en_emo_v3 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf iFaz/llama32_3B_en_emo_v3:Q4_K_M # Run inference directly in the terminal: llama-cli -hf iFaz/llama32_3B_en_emo_v3:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf iFaz/llama32_3B_en_emo_v3:Q4_K_M # Run inference directly in the terminal: llama-cli -hf iFaz/llama32_3B_en_emo_v3: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 iFaz/llama32_3B_en_emo_v3:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf iFaz/llama32_3B_en_emo_v3: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 iFaz/llama32_3B_en_emo_v3:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf iFaz/llama32_3B_en_emo_v3:Q4_K_M
Use Docker
docker model run hf.co/iFaz/llama32_3B_en_emo_v3:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use iFaz/llama32_3B_en_emo_v3 with Ollama:
ollama run hf.co/iFaz/llama32_3B_en_emo_v3:Q4_K_M
- Unsloth Studio
How to use iFaz/llama32_3B_en_emo_v3 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 iFaz/llama32_3B_en_emo_v3 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 iFaz/llama32_3B_en_emo_v3 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for iFaz/llama32_3B_en_emo_v3 to start chatting
- Pi
How to use iFaz/llama32_3B_en_emo_v3 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf iFaz/llama32_3B_en_emo_v3:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "iFaz/llama32_3B_en_emo_v3:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use iFaz/llama32_3B_en_emo_v3 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf iFaz/llama32_3B_en_emo_v3: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 iFaz/llama32_3B_en_emo_v3:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use iFaz/llama32_3B_en_emo_v3 with Docker Model Runner:
docker model run hf.co/iFaz/llama32_3B_en_emo_v3:Q4_K_M
- Lemonade
How to use iFaz/llama32_3B_en_emo_v3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull iFaz/llama32_3B_en_emo_v3:Q4_K_M
Run and chat with the model
lemonade run user.llama32_3B_en_emo_v3-Q4_K_M
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)Uploaded model
- Developed by: iFaz
- License: apache-2.0
- Finetuned from model : unsloth/Llama-3.2-3B-Instruct-bnb-4bit
Model Card: unsloth/Llama-3.2-3B-Instruct-bnb-4bit
Overview
This is a fine-tuned version of the unsloth/Llama-3.2-3B-Instruct-bnb-4bit model, optimized for instruction-following tasks. The model leverages the efficiency of 4-bit quantization, making it lightweight and resource-efficient while maintaining high-quality outputs. It is particularly suited for text generation tasks in English, with applications ranging from conversational AI to natural language understanding tasks.
Key Features
- Base Model:
unsloth/Llama-3.2-3B - Quantization: Utilizes 4-bit precision, enabling deployment on resource-constrained systems while maintaining performance.
- Language: English-focused, with robust generalization capabilities across diverse text-generation tasks.
- Fine-Tuning: Enhanced for instruction-following tasks to generate coherent and contextually relevant responses.
- Versatile Applications: Ideal for text generation, summarization, dialogue systems, and other natural language processing (NLP) tasks.
Model Details
- Developer: iFaz
- License: Apache 2.0 (permitting commercial and research use)
- Tags:
- Text generation inference
- Transformers
- Unsloth
- LLaMA
- TRL (Transformers Reinforcement Learning)
Usage
This model is designed for use in text-generation pipelines and can be easily integrated with the Hugging Face Transformers library. Its optimized architecture allows for inference on low-resource hardware, making it an excellent choice for applications that require efficient and scalable NLP solutions.
Example Code:
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load the model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("iFaz/llama32_3B_en_emo_v3")
model = AutoModelForCausalLM.from_pretrained("iFaz/llama32_3B_en_emo_v3")
# Generate text
input_text = "Explain the benefits of AI in education."
inputs = tokenizer(input_text, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Performance
The fine-tuned model demonstrates strong performance on instruction-based tasks, providing detailed and contextually accurate responses. The 4-bit quantization enhances its speed and reduces memory consumption, enabling usage on devices with limited computational resources.
Applications
- Conversational AI: Develop chatbots and virtual assistants with coherent, context-aware dialogue generation.
- Text Summarization: Extract concise summaries from lengthy texts for improved readability.
- Creative Writing: Assist in generating stories, articles, or creative content.
- Education: Enhance e-learning platforms with interactive and adaptive learning tools.
Limitations and Considerations
- Language Limitation: Currently optimized for English. Performance on other languages may be suboptimal.
- Domain-Specific Knowledge: While the model performs well on general tasks, it may require additional fine-tuning for domain-specific applications.
About the Developer
This model was developed and fine-tuned by iFaz, leveraging the capabilities of the unsloth/Llama-3.2-3B architecture to create an efficient and high-performance NLP tool.
Acknowledgments
The model builds upon the unsloth/Llama-3.2-3B framework and incorporates advancements in quantization techniques. Special thanks to the Hugging Face community for providing tools and resources to support NLP development.
License
The model is distributed under the Apache 2.0 License, allowing for both research and commercial use. For more details, refer to the license documentation.
- Downloads last month
- 11
Model tree for iFaz/llama32_3B_en_emo_v3
Base model
meta-llama/Llama-3.2-3B-Instruct
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="iFaz/llama32_3B_en_emo_v3", filename="unsloth.Q4_K_M.gguf", )