Text Generation
GGUF
English
Māori
llama.cpp
abteex-ai-labs
aotearoa
chain-of-thought
local-first
lumynax
new-zealand
qwen
qwq
reasoning
sovereign-ai
vllm
vllm-compatible
vllm-experimental
nvidia-nim
nim-compatible
nim-candidate
nvidia-nemo
nem
nvidia-nemo-pathway
nem-pathway
nem-convert-required
conversational
Instructions to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AbteeXAILab/lumynax-reasoning-qwq-32b-gguf", filename="qwq-32b-q4_k_m.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
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 AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
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 AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Use Docker
docker model run hf.co/AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AbteeXAILab/lumynax-reasoning-qwq-32b-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AbteeXAILab/lumynax-reasoning-qwq-32b-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
- Ollama
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Ollama:
ollama run hf.co/AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
- Unsloth Studio
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AbteeXAILab/lumynax-reasoning-qwq-32b-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AbteeXAILab/lumynax-reasoning-qwq-32b-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AbteeXAILab/lumynax-reasoning-qwq-32b-gguf to start chatting
- Pi
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Docker Model Runner:
docker model run hf.co/AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
- Lemonade
How to use AbteeXAILab/lumynax-reasoning-qwq-32b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AbteeXAILab/lumynax-reasoning-qwq-32b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.lumynax-reasoning-qwq-32b-gguf-Q4_K_M
List all available models
lemonade list
docs(quickstart): load mirrored local weights (no upstream fetch)
Browse files- quickstart.py +53 -64
quickstart.py
CHANGED
|
@@ -1,64 +1,53 @@
|
|
| 1 |
-
"""
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
This
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
""
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
)
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
{"role":
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
def main():
|
| 55 |
-
p = argparse.ArgumentParser()
|
| 56 |
-
p.add_argument("--interactive", action="store_true")
|
| 57 |
-
p.add_argument("--prompt", default=DEMO_PROMPT)
|
| 58 |
-
p.add_argument("--gguf", action="store_true", help="kept for compatibility — this build is GGUF-only")
|
| 59 |
-
args = p.parse_args()
|
| 60 |
-
_run_gguf(args.prompt, args.interactive)
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
if __name__ == "__main__":
|
| 64 |
-
main()
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Lumynax Reasoning Qwq 32B Gguf — LumynaX quickstart (clone & run).
|
| 3 |
+
|
| 4 |
+
This loads the GGUF that ships with this repo. No upstream HF call needed
|
| 5 |
+
once you've done `hf download AbteeXAILab/lumynax-reasoning-qwq-32b-gguf`.
|
| 6 |
+
|
| 7 |
+
Usage:
|
| 8 |
+
python quickstart.py # one-shot demo prompt
|
| 9 |
+
python quickstart.py --interactive # REPL
|
| 10 |
+
"""
|
| 11 |
+
from __future__ import annotations
|
| 12 |
+
import argparse, glob, os, sys
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
|
| 15 |
+
LUMYNAX_SYSTEM = "You are LumynaX, the AbteeX AI Labs assistant from Aotearoa New Zealand. Ko te marama te tuapapa. Answer with care; cite uncertainty; refuse unsafe asks."
|
| 16 |
+
DEMO_PROMPT = "Explain in 3 bullets why local-first AI matters for Aotearoa New Zealand."
|
| 17 |
+
|
| 18 |
+
# Locate the primary GGUF that was downloaded alongside this script.
|
| 19 |
+
HERE = Path(__file__).resolve().parent
|
| 20 |
+
PRIMARY = HERE / r"qwq-32b-q4_k_m.gguf"
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def main():
|
| 24 |
+
from llama_cpp import Llama
|
| 25 |
+
p = argparse.ArgumentParser()
|
| 26 |
+
p.add_argument("--interactive", action="store_true")
|
| 27 |
+
p.add_argument("--prompt", default=DEMO_PROMPT)
|
| 28 |
+
args = p.parse_args()
|
| 29 |
+
if not PRIMARY.exists():
|
| 30 |
+
print(f"[lumynax] primary weight file missing: {PRIMARY}", file=sys.stderr)
|
| 31 |
+
print(f"[lumynax] run: hf download AbteeXAILab/lumynax-reasoning-qwq-32b-gguf --local-dir <dir> first.", file=sys.stderr)
|
| 32 |
+
sys.exit(2)
|
| 33 |
+
print(f"[lumynax] loading {PRIMARY.name}{shard_log_suffix}")
|
| 34 |
+
llm = Llama(model_path=str(PRIMARY), n_ctx=16384,
|
| 35 |
+
n_gpu_layers=int(os.environ.get("N_GPU_LAYERS","-1")), verbose=False)
|
| 36 |
+
def chat(user):
|
| 37 |
+
out = llm.create_chat_completion(messages=[
|
| 38 |
+
{"role":"system","content":LUMYNAX_SYSTEM},
|
| 39 |
+
{"role":"user","content":user},
|
| 40 |
+
], max_tokens=512, temperature=0.4)
|
| 41 |
+
return out["choices"][0]["message"]["content"]
|
| 42 |
+
if args.interactive:
|
| 43 |
+
print("[lumynax] interactive mode — empty line exits.")
|
| 44 |
+
while True:
|
| 45 |
+
try: q = input("you> ").strip()
|
| 46 |
+
except EOFError: break
|
| 47 |
+
if not q: break
|
| 48 |
+
print("lumynax> " + chat(q))
|
| 49 |
+
else:
|
| 50 |
+
print(chat(args.prompt))
|
| 51 |
+
|
| 52 |
+
if __name__ == "__main__":
|
| 53 |
+
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|