giladgd/Apertus-8B-Instruct-2509-GGUF
0869
Apertus-8B-Instruct-2509-GGUF
Static quants of `swiss-ai/Apertus-8B-Instruct-2509`.
Quants
[!TIP] Download a quant usingnode-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:
brew install nodejsCLI
Chat with the model:
npx -y node-llama-cpp chat hf:giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_MCode
Use it in your project:
npm install node-llama-cppimport {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 projectUse with llama.cpp
Install llama.cpp through brew (works on Mac and Linux)
brew install llama.cppCLI
llama-cli -hf giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M -p "The meaning to life and the universe is"Server
llama-server -hf giladgd/Apertus-8B-Instruct-2509-GGUF:Q4_K_M -c 2048