Instructions to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF 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 QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-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/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-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/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Ollama:
ollama run hf.co/QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
- Unsloth Studio
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-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/Llama-3.2-3B-Agent007-Coder-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/Llama-3.2-3B-Agent007-Coder-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/Llama-3.2-3B-Agent007-Coder-GGUF to start chatting
- Pi
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF: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": "QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3.2-3B-Agent007-Coder-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF: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 QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF: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 "QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF: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"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
|
| 4 |
+
base_model: unsloth/llama-3.2-3b-instruct-bnb-4bit
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
tags:
|
| 9 |
+
- text-generation-inference
|
| 10 |
+
- transformers
|
| 11 |
+
- unsloth
|
| 12 |
+
- llama
|
| 13 |
+
- trl
|
| 14 |
+
datasets:
|
| 15 |
+
- sahil2801/CodeAlpaca-20k
|
| 16 |
+
- argilla/magpie-ultra-v0.1
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
[](https://hf.co/QuantFactory)
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
# QuantFactory/Llama-3.2-3B-Agent007-Coder-GGUF
|
| 24 |
+
This is quantized version of [EpistemeAI/Llama-3.2-3B-Agent007-Coder](https://huggingface.co/EpistemeAI/Llama-3.2-3B-Agent007-Coder) created using llama.cpp
|
| 25 |
+
|
| 26 |
+
# Original Model Card
|
| 27 |
+
|
| 28 |
+
# Llama Agent 3B coder
|
| 29 |
+
Fine tuned with Agent dataset and also Code Alpaca 20K and magpie ultra 0.1 datasets.
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
## Original Model card
|
| 33 |
+
## Model Information
|
| 34 |
+
|
| 35 |
+
The Meta Llama 3.2 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction-tuned generative models in 1B and 3B sizes (text in/text out). The Llama 3.2 instruction-tuned text only models are optimized for multilingual dialogue use cases, including agentic retrieval and summarization tasks. They outperform many of the available open source and closed chat models on common industry benchmarks.
|
| 36 |
+
|
| 37 |
+
**Model Developer:** Meta
|
| 38 |
+
|
| 39 |
+
**Model Architecture:** Llama 3.2 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety.
|
| 40 |
+
|
| 41 |
+
| | Training Data | Params | Input modalities | Output modalities | Context Length | GQA | Shared Embeddings | Token count | Knowledge cutoff |
|
| 42 |
+
| :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- | :---- |
|
| 43 |
+
| Llama 3.2 (text only) | A new mix of publicly available online data. | 1B (1.23B) | Multilingual Text | Multilingual Text and code | 128k | Yes | Yes | Up to 9T tokens | December 2023 |
|
| 44 |
+
| | | 3B (3.21B) | Multilingual Text | Multilingual Text and code | | | | | |
|
| 45 |
+
|
| 46 |
+
**Supported Languages:** English, German, French, Italian, Portuguese, Hindi, Spanish, and Thai are officially supported. Llama 3.2 has been trained on a broader collection of languages than these 8 supported languages. Developers may fine-tune Llama 3.2 models for languages beyond these supported languages, provided they comply with the Llama 3.2 Community License and the Acceptable Use Policy. Developers are always expected to ensure that their deployments, including those that involve additional languages, are completed safely and responsibly.
|
| 47 |
+
|
| 48 |
+
**Llama 3.2 Model Family:** Token counts refer to pretraining data only. All model versions use Grouped-Query Attention (GQA) for improved inference scalability.
|
| 49 |
+
|
| 50 |
+
**Model Release Date:** Sept 25, 2024
|
| 51 |
+
|
| 52 |
+
**Status:** This is a static model trained on an offline dataset. Future versions may be released that improve model capabilities and safety.
|
| 53 |
+
|
| 54 |
+
**License:** Use of Llama 3.2 is governed by the [Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE) (a custom, commercial license agreement).
|
| 55 |
+
|
| 56 |
+
**Feedback:** Where to send questions or comments about the model Instructions on how to provide feedback or comments on the model can be found in the model [README](https://github.com/meta-llama/llama-models/tree/main/models/llama3_2). For more technical information about generation parameters and recipes for how to use Llama 3.2 in applications, please go [here](https://github.com/meta-llama/llama-recipes).
|
| 57 |
+
|
| 58 |
+
## Intended Use
|
| 59 |
+
|
| 60 |
+
**Intended Use Cases:** Llama 3.2 is intended for commercial and research use in multiple languages. Instruction tuned text only models are intended for assistant-like chat and agentic applications like knowledge retrieval and summarization, mobile AI powered writing assistants and query and prompt rewriting. Pretrained models can be adapted for a variety of additional natural language generation tasks.
|
| 61 |
+
|
| 62 |
+
**Out of Scope:** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in any other way that is prohibited by the Acceptable Use Policy and Llama 3.2 Community License. Use in languages beyond those explicitly referenced as supported in this model card.
|
| 63 |
+
|
| 64 |
+
## How to use
|
| 65 |
+
|
| 66 |
+
This repository contains two versions of Llama-3.2-3B-Instruct, for use with `transformers` and with the original `llama` codebase.
|
| 67 |
+
|
| 68 |
+
### Use with transformers
|
| 69 |
+
|
| 70 |
+
Starting with `transformers >= 4.43.0` onward, you can run conversational inference using the Transformers `pipeline` abstraction or by leveraging the Auto classes with the `generate()` function.
|
| 71 |
+
|
| 72 |
+
Make sure to update your transformers installation via `pip install --upgrade transformers`.
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
import torch
|
| 76 |
+
from transformers import pipeline
|
| 77 |
+
model_id = "EpistemeAI/Llama-3.2-3B-Agent007-Coder"
|
| 78 |
+
pipe = pipeline(
|
| 79 |
+
"text-generation",
|
| 80 |
+
model=model_id,
|
| 81 |
+
torch_dtype=torch.bfloat16,
|
| 82 |
+
device_map="auto",
|
| 83 |
+
)
|
| 84 |
+
messages = [
|
| 85 |
+
{"role": "system", "content": "You are a pirate chatbot who always responds in pirate speak!"},
|
| 86 |
+
{"role": "user", "content": "Who are you?"},
|
| 87 |
+
]
|
| 88 |
+
outputs = pipe(
|
| 89 |
+
messages,
|
| 90 |
+
max_new_tokens=256,
|
| 91 |
+
)
|
| 92 |
+
print(outputs[0]["generated_text"][-1])
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Note: You can also find detailed recipes on how to use the model locally, with `torch.compile()`, assisted generations, quantised and more at [`huggingface-llama-recipes`](https://github.com/huggingface/huggingface-llama-recipes)
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
# Uploaded model
|
| 100 |
+
|
| 101 |
+
- **Developed by:** EpistemeAI
|
| 102 |
+
- **License:** apache-2.0
|
| 103 |
+
- **Finetuned from model :** unsloth/llama-3.2-3b-instruct-bnb-4bit
|
| 104 |
+
|
| 105 |
+
This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 106 |
+
|
| 107 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|