How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf snakeying/llama3.1-8B-LongWriter:Q8_0
# Run inference directly in the terminal:
llama-cli -hf snakeying/llama3.1-8B-LongWriter:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf snakeying/llama3.1-8B-LongWriter:Q8_0
# Run inference directly in the terminal:
llama-cli -hf snakeying/llama3.1-8B-LongWriter:Q8_0
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 snakeying/llama3.1-8B-LongWriter:Q8_0
# Run inference directly in the terminal:
./llama-cli -hf snakeying/llama3.1-8B-LongWriter:Q8_0
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 snakeying/llama3.1-8B-LongWriter:Q8_0
# Run inference directly in the terminal:
./build/bin/llama-cli -hf snakeying/llama3.1-8B-LongWriter:Q8_0
Use Docker
docker model run hf.co/snakeying/llama3.1-8B-LongWriter:Q8_0
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

TEMPLATE for Ollama Modelfile

TEMPLATE """ {{- range $i, $_ := .Messages }} {{- if eq .Role "user" }} {{- if and $.Tools (le (len (slice $.Messages $i)) 2) }}[AVAILABLE_TOOLS] {{ $.Tools }}[/AVAILABLE_TOOLS] {{- end }}[INST] {{ if and $.System (eq (len (slice $.Messages $i)) 1) }}{{ $.System }}

{{ end }}{{ .Content }}[/INST] {{- else if eq .Role "assistant" }} {{- if .Content }} {{ .Content }}{{ if not (eq (len (slice $.Messages $i)) 1) }}{{ end }} {{- else if .ToolCalls }}[TOOL_CALLS] [ {{- range .ToolCalls }}{"name": "{{ .Function.Name }}", "arguments": {{ .Function.Arguments }}} {{- end }}] {{- end }} {{- else if eq .Role "tool" }}[TOOL_RESULTS] {"content": {{ .Content }}} [/TOOL_RESULTS] {{- end }} {{- end }} """

PARAMETER stop "[INST]" PARAMETER stop "[/INST]"

Downloads last month
12
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support