Views
No views yet
| File | Description |
|---|---|
monostich-f16.gguf | FP16 (full precision) |
1# All GGUF files
2huggingface-cli download kerzgrr/Monostich-100M --include "*.gguf" --local-dir .
3
4# Or a specific file
5huggingface-cli download kerzgrr/Monostich-100M monostich-f16.gguf --local-dir .https://huggingface.co/kerzgrr/Monostich-100M/resolve/main/monostich-f16.gguf1git clone https://github.com/ggerganov/llama.cpp
2cd llama.cpp
3cmake -B build -DGGML_CUDA=ON # optional: GPU
4cmake --build build --config Release1./build/bin/llama-cli -m monostich-f16.gguf \
2 -c 1024 \
3 --temp 0.28 \
4 --top-p 0.9 \
5 -i-c 1024 — context length (max 1024)--temp 0.28 — sampling temperature--top-p 0.9 — nucleus sampling-i — interactive mode1./build/bin/llama-cli -m monostich-f16.gguf \
2 -p "Hello, how are you?" \
3 -n 128 \
4 -c 1024 \
5 --temp 0.28-p — prompt-n — max new tokens<|begin_of_text|><|start_header_id|>user<|end_header_id|>
Your question here<|eot_id|><|start_header_id|>assistant<|end_header_id|>
1./build/bin/llama-cli -m monostich-f16.gguf \
2 -p "<|begin_of_text|><|start_header_id|>user<|end_header_id|>
3
4What is 2+2?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
5
6" \
7 -n 128 -c 1024 --temp 0.28pip install llama-cpp-python1from llama_cpp import Llama
2
3llm = Llama(model_path="monostich-f16.gguf", n_ctx=1024)
4
5out = llm(
6 "<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHello<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n",
7 max_tokens=128,
8 temperature=0.28,
9 top_p=0.9,
10)
11print(out["choices"][0]["text"])