Instructions to use ngbcoder/flow-webdev-3b-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 ngbcoder/flow-webdev-3b-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 ngbcoder/flow-webdev-3b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ngbcoder/flow-webdev-3b-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 ngbcoder/flow-webdev-3b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf ngbcoder/flow-webdev-3b-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf ngbcoder/flow-webdev-3b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ngbcoder/flow-webdev-3b-gguf:Q4_K_M
Use Docker
docker model run hf.co/ngbcoder/flow-webdev-3b-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use ngbcoder/flow-webdev-3b-gguf with Ollama:
ollama run hf.co/ngbcoder/flow-webdev-3b-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use ngbcoder/flow-webdev-3b-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ngbcoder/flow-webdev-3b-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": "ngbcoder/flow-webdev-3b-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ngbcoder/flow-webdev-3b-gguf with Docker Model Runner:
docker model run hf.co/ngbcoder/flow-webdev-3b-gguf:Q4_K_M
- Lemonade
How to use ngbcoder/flow-webdev-3b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ngbcoder/flow-webdev-3b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.flow-webdev-3b-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ngbcoder/flow-webdev-3b-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 ngbcoder/flow-webdev-3b-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 ngbcoder/flow-webdev-3b-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ngbcoder/flow-webdev-3b-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ngbcoder/flow-webdev-3b-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 "ngbcoder/flow-webdev-3b-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"
Trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- .gitattributes +1 -0
- Llama-3.2-3B-Instruct.Q4_K_M.gguf +3 -0
- Modelfile +57 -0
- README.md +26 -0
- config.json +37 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Llama-3.2-3B-Instruct.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
Llama-3.2-3B-Instruct.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:608e0997b0047dd23247e07efc5a16c6deebb681fc3ce84ff6abe4e14f966d2c
|
| 3 |
+
size 2019377504
|
Modelfile
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
FROM Llama-3.2-3B-Instruct.Q4_K_M.gguf
|
| 3 |
+
TEMPLATE """{{ if .Messages }}
|
| 4 |
+
{{- if or .System .Tools }}<|start_header_id|>system<|end_header_id|>
|
| 5 |
+
{{- if .System }}
|
| 6 |
+
|
| 7 |
+
{{ .System }}
|
| 8 |
+
{{- end }}
|
| 9 |
+
{{- if .Tools }}
|
| 10 |
+
|
| 11 |
+
You are a helpful assistant with tool calling capabilities. When you receive a tool call response, use the output to format an answer to the original use question.
|
| 12 |
+
{{- end }}
|
| 13 |
+
{{- end }}<|eot_id|>
|
| 14 |
+
{{- range $i, $_ := .Messages }}
|
| 15 |
+
{{- $last := eq (len (slice $.Messages $i)) 1 }}
|
| 16 |
+
{{- if eq .Role "user" }}<|start_header_id|>user<|end_header_id|>
|
| 17 |
+
{{- if and $.Tools $last }}
|
| 18 |
+
|
| 19 |
+
Given the following functions, please respond with a JSON for a function call with its proper arguments that best answers the given prompt.
|
| 20 |
+
|
| 21 |
+
Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}. Do not use variables.
|
| 22 |
+
|
| 23 |
+
{{ $.Tools }}
|
| 24 |
+
{{- end }}
|
| 25 |
+
|
| 26 |
+
{{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
|
| 27 |
+
|
| 28 |
+
{{ end }}
|
| 29 |
+
{{- else if eq .Role "assistant" }}<|start_header_id|>assistant<|end_header_id|>
|
| 30 |
+
{{- if .ToolCalls }}
|
| 31 |
+
|
| 32 |
+
{{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "parameters": {{ .Function.Arguments }}}{{ end }}
|
| 33 |
+
{{- else }}
|
| 34 |
+
|
| 35 |
+
{{ .Content }}{{ if not $last }}<|eot_id|>{{ end }}
|
| 36 |
+
{{- end }}
|
| 37 |
+
{{- else if eq .Role "tool" }}<|start_header_id|>ipython<|end_header_id|>
|
| 38 |
+
|
| 39 |
+
{{ .Content }}<|eot_id|>{{ if $last }}<|start_header_id|>assistant<|end_header_id|>
|
| 40 |
+
|
| 41 |
+
{{ end }}
|
| 42 |
+
{{- end }}
|
| 43 |
+
{{- end }}
|
| 44 |
+
{{- else }}
|
| 45 |
+
{{- if .System }}<|start_header_id|>system<|end_header_id|>
|
| 46 |
+
|
| 47 |
+
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
|
| 48 |
+
|
| 49 |
+
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
|
| 50 |
+
|
| 51 |
+
{{ end }}{{ .Response }}{{ if .Response }}<|eot_id|>{{ end }}"""
|
| 52 |
+
PARAMETER stop "<|start_header_id|>"
|
| 53 |
+
PARAMETER stop "<|end_header_id|>"
|
| 54 |
+
PARAMETER stop "<|eot_id|>"
|
| 55 |
+
PARAMETER stop "<|eom_id|>"
|
| 56 |
+
PARAMETER temperature 1.5
|
| 57 |
+
PARAMETER min_p 0.1
|
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- gguf
|
| 4 |
+
- llama.cpp
|
| 5 |
+
- unsloth
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# flow-webdev-3b-gguf : GGUF
|
| 10 |
+
|
| 11 |
+
This model was finetuned and converted to GGUF format using [Unsloth](https://github.com/unslothai/unsloth).
|
| 12 |
+
|
| 13 |
+
**Example usage**:
|
| 14 |
+
- For text only LLMs: `llama-cli -hf ngbcoder/flow-webdev-3b-gguf --jinja`
|
| 15 |
+
- For multimodal models: `llama-mtmd-cli -hf ngbcoder/flow-webdev-3b-gguf --jinja`
|
| 16 |
+
|
| 17 |
+
## Available Model files:
|
| 18 |
+
- `Llama-3.2-3B-Instruct.Q4_K_M.gguf`
|
| 19 |
+
|
| 20 |
+
## Ollama
|
| 21 |
+
An Ollama Modelfile is included for easy deployment.
|
| 22 |
+
|
| 23 |
+
## Note
|
| 24 |
+
The model's BOS token behavior was adjusted for GGUF compatibility.
|
| 25 |
+
This was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
|
| 26 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|
config.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 128000,
|
| 8 |
+
"torch_dtype": "bfloat16",
|
| 9 |
+
"eos_token_id": 128009,
|
| 10 |
+
"head_dim": 128,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 3072,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 8192,
|
| 15 |
+
"max_position_embeddings": 131072,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 24,
|
| 19 |
+
"num_hidden_layers": 28,
|
| 20 |
+
"num_key_value_heads": 8,
|
| 21 |
+
"pad_token_id": 128004,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"rms_norm_eps": 1e-05,
|
| 24 |
+
"rope_parameters": {
|
| 25 |
+
"factor": 32.0,
|
| 26 |
+
"high_freq_factor": 4.0,
|
| 27 |
+
"low_freq_factor": 1.0,
|
| 28 |
+
"original_max_position_embeddings": 8192,
|
| 29 |
+
"rope_theta": 500000.0,
|
| 30 |
+
"rope_type": "llama3"
|
| 31 |
+
},
|
| 32 |
+
"tie_word_embeddings": true,
|
| 33 |
+
"transformers_version": "5.17.0",
|
| 34 |
+
"unsloth_fixed": true,
|
| 35 |
+
"use_cache": true,
|
| 36 |
+
"vocab_size": 128256
|
| 37 |
+
}
|