Instructions to use Futuremannn/tm12b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Futuremannn/tm12b-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 Futuremannn/tm12b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf Futuremannn/tm12b-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 Futuremannn/tm12b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf Futuremannn/tm12b-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Futuremannn/tm12b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Futuremannn/tm12b-gguf:Q4_K_M
Use Docker
docker model run hf.co/Futuremannn/tm12b-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Futuremannn/tm12b-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Futuremannn/tm12b-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": "Futuremannn/tm12b-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Futuremannn/tm12b-gguf:Q4_K_M
- Ollama
How to use Futuremannn/tm12b-gguf with Ollama:
ollama run hf.co/Futuremannn/tm12b-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Futuremannn/tm12b-gguf with Docker Model Runner:
docker model run hf.co/Futuremannn/tm12b-gguf:Q4_K_M
- Lemonade
How to use Futuremannn/tm12b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Futuremannn/tm12b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.tm12b-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
tm12b-gguf
A Q4_K_M GGUF of
Futuremannn/tussie-mussie-12B,
converted with llama.cpp at tag b9437
(commit aa46bda). Access is gated with manual review.
Read this first: the source is 4-bit
tussie-mussie-12B is not published in fp16 or bf16. It is a bitsandbytes NF4
4-bit checkpoint with double quantisation β quant_method: bitsandbytes,
bnb_4bit_quant_type: nf4, bnb_4bit_use_double_quant: true β so its weights are
already quantised once. Every *.weight on disk is a 4-bit packed uint8 of
half the expected length, sitting beside .absmax, .nested_absmax,
.nested_quant_map, .quant_map and .quant_state.bitsandbytes__nf4 sidecars.
llama.cpp has no bitsandbytes codepath, so this file is the product of two lossy steps rather than one:
NF4 4-bit -> bf16 (reconstructed) -> bf16 GGUF -> Q4_K_M
The first step is a reconstruction, not a recovery. PreTrainedModel.dequantize
rebuilds the best bf16 representation of the NF4 values, and the NF4 rounding that
produced those values is not reversible. This file is therefore quantised twice
relative to whatever bf16 merge the source was made from, and it will not match
a Q4_K_M produced directly from bf16 weights.
Practical consequence: if fidelity matters, request access to the full-precision weights and quantise from those. This file is the accurate conversion of what is published; it is not the same thing as an accurate conversion of the model.
What is in the file
| GGUF architecture | llama (Mistral-Nemo-12B geometry) |
| Parameters | ~12.2 B |
| Shape | 40 blocks, hidden 5120, FFN 14336, 32 heads / 8 KV heads, head_dim 128 |
| Context | 131072, rope theta 1e6 |
| Tokenizer | BPE (gpt2), 131074 tokens |
| Quantisation | Q4_K_M (general.file_type 15) |
| Chat template | embedded β ChatML, see below |
Running it
llama-cli -m tm12b-Q4_K_M.gguf -p "Once upon a time" -n 128
llama-server -m tm12b-Q4_K_M.gguf -c 8192 --host 127.0.0.1 --port 8080
The chat template is embedded, so llama-server's /v1/chat/completions applies
it automatically β no --chat-template needed.
The template is ChatML, not Mistral [INST]. This is a Mistral-Nemo
architecture, but the source repository ships a
chat_template.jinja
in <|im_start|>role ... <|im_end|> form, and that is what is embedded here. The
model was not tuned on Mistral's prompt format; format it that way and quality
drops. The converter would have silently fallen back to llama.cpp's community
Mistral template β a [INST] template this model was never trained on β if the
source's chat_template.jinja had not been carried into the conversion, which is
why the conversion asserts the template is present before publishing.
How it was made
Entirely on Modal, CPU-only, in the volume-backed stages the project runs:
- Fetch the gated source at a pinned full commit SHA
(
89edc76f16b59db3eb6e23422495af1fdd36bef0). - Reconstruct to bf16 with
transformers5.13.1 andbitsandbytes0.50.2, then write a plain bf16 checkpoint whoseconfig.jsonno longer advertisesquant_method: bitsandbytes. Thechat_template.jinjaand tokenizer files are copied across unchanged. - Convert with
convert_hf_to_gguf.py --outtype bf16and quantise withllama-quantize ... Q4_K_M, both built from llama.cppb9437. The intermediate GGUF is written to local scratch; only the result is kept. - Verify by serving the quantised file with
llama-serverand taking a real completion from both/completionand/v1/chat/completions, then reading the file's own header back to confirm architecture, head dimension and the embedded chat template. The chat endpoint is included because a template can be present and still fail to render. - Publish to this repository, gated with manual approval before the weights were uploaded rather than after.
Caveats, stated plainly
- Double quantisation, as above. This is the main one.
- No evaluation was run. Nothing here has been benchmarked against the source or against a full-precision conversion. Correctness of the pipeline was verified; quality of the output was not.
- The source carries no model card β no description of the data, the training procedure, or the licence. This repository cannot supply what the source does not state, and inherits whatever the source's terms are.
- Templates and tokenizer are as published upstream; if the upstream repository changes them, this file will not.
- Downloads last month
- -
4-bit
Model tree for Futuremannn/tm12b-gguf
Base model
Futuremannn/tussie-mussie-12B