Views
No views yet
bigcode/starcoder2-3b on 709 prompt to G-code pairs (CNC milling /
drilling operations across RS274/NGC, Fanuc, Haas, Siemens, Grbl dialects).
Exported to Q4_K_M GGUF for in-process inference via llama-cpp-python on
the g-gen HF Space.<|system|>
You are a CNC G-code expert. Given a natural language description of a machining operation, output only valid G-code with no explanation, no markdown, and no prose. Each line must be a valid G-code block.
<|user|>
<your machining description>
<|assistant|>
<G-code>1from llama_cpp import Llama
2llm = Llama(model_path="gcode-specialist-q4_k_m.gguf", n_ctx=2048)
3out = llm.create_completion(
4 "<|system|>\n" + SYSTEM_PROMPT + "\n<|user|>\nDrill 4 holes...\n<|assistant|>\n",
5 max_tokens=512, stop=["M30\n", "<|user|>"],
6)
7print(out["choices"][0]["text"])