Text Generation
GGUF
English
esper
esper-2
valiant
valiant-labs
llama
llama-3.2
llama-3.2-instruct
llama-3.2-instruct-3b
llama-3
llama-3-instruct
llama-3-instruct-3b
3b
code
code-instruct
python
dev-ops
terraform
azure
aws
gcp
architect
engineer
developer
conversational
chat
instruct
Eval Results (legacy)
Instructions to use QuantFactory/Llama3.2-3B-Esper2-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QuantFactory/Llama3.2-3B-Esper2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/Llama3.2-3B-Esper2-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuantFactory/Llama3.2-3B-Esper2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
- Ollama
How to use QuantFactory/Llama3.2-3B-Esper2-GGUF with Ollama:
ollama run hf.co/QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
- Unsloth Desktop
- Pi
How to use QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/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/Llama3.2-3B-Esper2-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use QuantFactory/Llama3.2-3B-Esper2-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Llama3.2-3B-Esper2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Llama3.2-3B-Esper2-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama3.2-3B-Esper2-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use QuantFactory/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-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/Llama3.2-3B-Esper2-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,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- esper
|
| 9 |
+
- esper-2
|
| 10 |
+
- valiant
|
| 11 |
+
- valiant-labs
|
| 12 |
+
- llama
|
| 13 |
+
- llama-3.2
|
| 14 |
+
- llama-3.2-instruct
|
| 15 |
+
- llama-3.2-instruct-3b
|
| 16 |
+
- llama-3
|
| 17 |
+
- llama-3-instruct
|
| 18 |
+
- llama-3-instruct-3b
|
| 19 |
+
- 3b
|
| 20 |
+
- code
|
| 21 |
+
- code-instruct
|
| 22 |
+
- python
|
| 23 |
+
- dev-ops
|
| 24 |
+
- terraform
|
| 25 |
+
- azure
|
| 26 |
+
- aws
|
| 27 |
+
- gcp
|
| 28 |
+
- architect
|
| 29 |
+
- engineer
|
| 30 |
+
- developer
|
| 31 |
+
- conversational
|
| 32 |
+
- chat
|
| 33 |
+
- instruct
|
| 34 |
+
base_model: meta-llama/Llama-3.2-3B-Instruct
|
| 35 |
+
datasets:
|
| 36 |
+
- sequelbox/Titanium
|
| 37 |
+
- sequelbox/Tachibana
|
| 38 |
+
- sequelbox/Supernova
|
| 39 |
+
model-index:
|
| 40 |
+
- name: ValiantLabs/Llama3.2-3B-Esper2
|
| 41 |
+
results:
|
| 42 |
+
- task:
|
| 43 |
+
type: text-generation
|
| 44 |
+
name: Text Generation
|
| 45 |
+
dataset:
|
| 46 |
+
name: Winogrande (5-Shot)
|
| 47 |
+
type: Winogrande
|
| 48 |
+
args:
|
| 49 |
+
num_few_shot: 5
|
| 50 |
+
metrics:
|
| 51 |
+
- type: acc
|
| 52 |
+
value: 65.27
|
| 53 |
+
name: acc
|
| 54 |
+
- task:
|
| 55 |
+
type: text-generation
|
| 56 |
+
name: Text Generation
|
| 57 |
+
dataset:
|
| 58 |
+
name: ARC Challenge (25-Shot)
|
| 59 |
+
type: arc-challenge
|
| 60 |
+
args:
|
| 61 |
+
num_few_shot: 25
|
| 62 |
+
metrics:
|
| 63 |
+
- type: acc_norm
|
| 64 |
+
value: 43.17
|
| 65 |
+
name: normalized accuracy
|
| 66 |
+
model_type: llama
|
| 67 |
+
license: llama3.2
|
| 68 |
+
|
| 69 |
+
---
|
| 70 |
+
|
| 71 |
+
[](https://hf.co/QuantFactory)
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
# QuantFactory/Llama3.2-3B-Esper2-GGUF
|
| 75 |
+
This is quantized version of [ValiantLabs/Llama3.2-3B-Esper2](https://huggingface.co/ValiantLabs/Llama3.2-3B-Esper2) created using llama.cpp
|
| 76 |
+
|
| 77 |
+
# Original Model Card
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+

|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
Esper 2 is a DevOps and cloud architecture code specialist built on Llama 3.2 3b.
|
| 85 |
+
- Expertise-driven, an AI assistant focused on AWS, Azure, GCP, Terraform, Dockerfiles, pipelines, shell scripts and more!
|
| 86 |
+
- Real world problem solving and high quality code instruct performance within the Llama 3.2 Instruct chat format
|
| 87 |
+
- Finetuned on synthetic [DevOps-instruct](https://huggingface.co/datasets/sequelbox/Titanium) and [code-instruct](https://huggingface.co/datasets/sequelbox/Tachibana) data generated with Llama 3.1 405b.
|
| 88 |
+
- Overall chat performance supplemented with [generalist chat data.](https://huggingface.co/datasets/sequelbox/Supernova)
|
| 89 |
+
|
| 90 |
+
Try our code-instruct AI assistant [Enigma!](https://huggingface.co/ValiantLabs/Llama3.1-8B-Enigma)
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
## Version
|
| 94 |
+
|
| 95 |
+
This is the **2024-10-03** release of Esper 2 for Llama 3.2 3b.
|
| 96 |
+
|
| 97 |
+
Esper 2 is also available for [Llama 3.1 8b!](https://huggingface.co/ValiantLabs/Llama3.1-8B-Esper2)
|
| 98 |
+
|
| 99 |
+
Esper 2 will be coming to more model sizes soon :)
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
## Prompting Guide
|
| 103 |
+
Esper 2 uses the [Llama 3.2 Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) prompt format. The example script below can be used as a starting point for general chat:
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
import transformers
|
| 107 |
+
import torch
|
| 108 |
+
|
| 109 |
+
model_id = "ValiantLabs/Llama3.2-3B-Esper2"
|
| 110 |
+
|
| 111 |
+
pipeline = transformers.pipeline(
|
| 112 |
+
"text-generation",
|
| 113 |
+
model=model_id,
|
| 114 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
| 115 |
+
device_map="auto",
|
| 116 |
+
)
|
| 117 |
+
|
| 118 |
+
messages = [
|
| 119 |
+
{"role": "system", "content": "You are an AI assistant."},
|
| 120 |
+
{"role": "user", "content": "Hi, how do I optimize the size of a Docker image?"}
|
| 121 |
+
]
|
| 122 |
+
|
| 123 |
+
outputs = pipeline(
|
| 124 |
+
messages,
|
| 125 |
+
max_new_tokens=2048,
|
| 126 |
+
)
|
| 127 |
+
|
| 128 |
+
print(outputs[0]["generated_text"][-1])
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
## The Model
|
| 132 |
+
Esper 2 is built on top of Llama 3.2 3b Instruct, improving performance through high quality DevOps, code, and chat data in Llama 3.2 Instruct prompt style.
|
| 133 |
+
|
| 134 |
+
Our current version of Esper 2 is trained on DevOps data from [sequelbox/Titanium](https://huggingface.co/datasets/sequelbox/Titanium), supplemented by code-instruct data from [sequelbox/Tachibana](https://huggingface.co/datasets/sequelbox/Tachibana) and general chat data from [sequelbox/Supernova.](https://huggingface.co/datasets/sequelbox/Supernova)
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+

|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
Esper 2 is created by [Valiant Labs.](http://valiantlabs.ca/)
|
| 141 |
+
|
| 142 |
+
[Check out our HuggingFace page for Shining Valiant 2, Enigma, and our other Build Tools models for creators!](https://huggingface.co/ValiantLabs)
|
| 143 |
+
|
| 144 |
+
[Follow us on X for updates on our models!](https://twitter.com/valiant_labs)
|
| 145 |
+
|
| 146 |
+
We care about open source.
|
| 147 |
+
For everyone to use.
|
| 148 |
+
|
| 149 |
+
We encourage others to finetune further from our models.
|