CoolFace
Modelpublic

giladgd/Apertus-8B-Instruct-2509-GGUF

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes869downloads
Model Card

Apertus-8B-Instruct-2509-GGUF

Static quants of `swiss-ai/Apertus-8B-Instruct-2509`.

Quants

Link[URI](https://node-llama-cpp.withcat.ai/cli/pull)QuantSize
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q2_KQ2_K3.3GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q3_K_SQ3KS3.7GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q3_K_MQ3KM4.2GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q3_K_LQ3KL4.6GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_0Q4_04.7GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_SQ4KS4.7GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_MQ4KM5.1GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q5_0Q5_05.6GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q5_K_SQ5KS5.6GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q5_K_MQ5KM5.8GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q6_KQ6_K6.6GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q8_0Q8_08.6GB
GGUFhf:giladgd/Apertus-8B-Instruct-2509-GGUF:F16F1616.1GB
[!TIP] Download a quant using node-llama-cpp (more info): ``bash npx -y node-llama-cpp pull <URI> ``

Usage

Use with `node-llama-cpp` (recommended)

Ensure you have node.js installed:

bash
brew install nodejs

CLI

Chat with the model:

bash
npx -y node-llama-cpp chat hf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M

Code

Use it in your project:

bash
npm install node-llama-cpp
typescript
import {getLlama, resolveModelFile, LlamaChatSession} from "node-llama-cpp";

const modelUri = "hf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M";


const llama = await getLlama();
const model = await llama.loadModel({
    modelPath: await resolveModelFile(modelUri)
});
const context = await model.createContext();
const session = new LlamaChatSession({
    contextSequence: context.getSequence()
});


const q1 = "Hi there, how are you?";
console.log("User: " + q1);

const a1 = await session.prompt(q1);
console.log("AI: " + a1);
[!TIP] Read the getting started guide to quickly scaffold a new node-llama-cpp project

Use with llama.cpp

Install llama.cpp through brew (works on Mac and Linux)

bash
brew install llama.cpp

CLI

bash
llama-cli -hf giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M -p "The meaning to life and the universe is"

Server

bash
llama-server -hf giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M -c 2048