Views
No views yet

1# pip install llama-cpp-python
2
3from llama_cpp import Llama
4
5llm = Llama.from_pretrained(
6repo_id="Knixee/Atlas-nms-v2",
7filename="Atlas-2.0-Q4_K_M.gguf", # Or Q4_K_S, Q8_0, BF16
8)
9
10output = llm("User: Hello!\nAssistant:", max_tokens=512)
11print(output["choices"][0]["text"])1# pip install vllm
2
3vllm serve Knixee/Atlas-nms-v2 \
4 --subfolder Atlas-2.0-AWQ-4bit \
5 --served-model-name Atlas-nms-v2 \
6 --quantization awq \
7 --max-model-len 8192 \
8 --gpu-memory-utilization 0.88 \
9 --max-num-seqs 6 \
10 --port 81481curl http://localhost:8148/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{"model": "Atlas-nms-v2", "messages": [{"role": "user", "content": "Hello!"}]}'