Views
No views yet
Qwen/Qwen3-Coder-30B-A3B-Instruct using llama.cpp via the ggml.ai's GGUF-my-repo space.
Refer to the original model card for more details on the model.node-llama-cpp (recommended)npx -y node-llama-cpp chat hf:giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF:Q4_K_MEnsure that you havenode.jsinstalled first:brew install nodejs
npm install node-llama-cpp1import {getLlama, resolveModelFile, LlamaChatSession} from "node-llama-cpp";
2
3const modelUri = "hf:giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF:Q4_K_M";
4
5
6const llama = await getLlama();
7const model = await llama.loadModel({
8 modelPath: await resolveModelFile(modelUri)
9});
10const context = await model.createContext();
11const session = new LlamaChatSession({
12 contextSequence: context.getSequence()
13});
14
15
16const q1 = "Hi there, how are you?";
17console.log("User: " + q1);
18
19const a1 = await session.prompt(q1);
20console.log("AI: " + a1);1brew install llama.cpp
2llama-cli --hf-repo giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF --hf-file qwen3-coder-30b-a3b-instruct-q4_k_m.gguf -p "The meaning to life and the universe is"llama-server --hf-repo giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF --hf-file qwen3-coder-30b-a3b-instruct-q4_k_m.gguf -c 2048git clone https://github.com/ggerganov/llama.cppLLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).cd llama.cpp && LLAMA_CURL=1 make./llama-cli --hf-repo giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF --hf-file qwen3-coder-30b-a3b-instruct-q4_k_m.gguf -p "The meaning to life and the universe is"./llama-server --hf-repo giladgd/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M-GGUF --hf-file qwen3-coder-30b-a3b-instruct-q4_k_m.gguf -c 2048