Instructions to use tsfrm/the-unanswerer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tsfrm/the-unanswerer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tsfrm/the-unanswerer") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tsfrm/the-unanswerer") model = AutoModelForCausalLM.from_pretrained("tsfrm/the-unanswerer", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tsfrm/the-unanswerer 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 tsfrm/the-unanswerer:F16 # Run inference directly in the terminal: llama cli -hf tsfrm/the-unanswerer:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tsfrm/the-unanswerer:F16 # Run inference directly in the terminal: llama cli -hf tsfrm/the-unanswerer:F16
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 tsfrm/the-unanswerer:F16 # Run inference directly in the terminal: ./llama-cli -hf tsfrm/the-unanswerer:F16
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 tsfrm/the-unanswerer:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf tsfrm/the-unanswerer:F16
Use Docker
docker model run hf.co/tsfrm/the-unanswerer:F16
- LM Studio
- Jan
- vLLM
How to use tsfrm/the-unanswerer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tsfrm/the-unanswerer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tsfrm/the-unanswerer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tsfrm/the-unanswerer:F16
- SGLang
How to use tsfrm/the-unanswerer with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tsfrm/the-unanswerer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tsfrm/the-unanswerer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tsfrm/the-unanswerer" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tsfrm/the-unanswerer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tsfrm/the-unanswerer with Ollama:
ollama run hf.co/tsfrm/the-unanswerer:F16
- Unsloth Desktop
- Docker Model Runner
How to use tsfrm/the-unanswerer with Docker Model Runner:
docker model run hf.co/tsfrm/the-unanswerer:F16
- Lemonade
How to use tsfrm/the-unanswerer with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tsfrm/the-unanswerer:F16
Run and chat with the model
lemonade run user.the-unanswerer-F16
List all available models
lemonade list
- Atomic Chat
the-unanswerer
You give it an answer. It asks the question. Each question is engineered backwards until the given answer is forced, then decorated with enough mundane detail that no human being has ever asked it.
This is the 2.0 rebuild: 360M instead of 135M, and eight generator families instead of three. The v1 model answered anything outside its three templates with an infinite loop; this one answers almost everything with a question.
Data
24,000 pairs from gen_data_v2.py (seed 1977, deterministic, no LLM involved).
Eight families: arithmetic chains about objects kept in rooms, possession riddles,
tenants'-association complaints, guarded recipes, wills, lost-property ledgers,
village football scores, and auction lots. Every pair is built backwards - pick the
answer, construct the only story that forces it, decorate. Sentence order, phrasing,
names and distractors are randomized per sample so no two completions share a template.
500 held-out pairs drawn from the same pools with unseen name/object combinations.
Training
SmolLM2-360M-Instruct, full fine-tune, bf16. 1,500 steps at effective batch 32, seq len 448, lr 2e-5 cosine with 40-step warmup, labels masked over the prompt. Ran on a Lupine Cloud RTX PRO 6000 Blackwell in 326 seconds of step time. Final loss around 1.75.
Held-out results
ANSWER: '59 pinches of smoked paprika'
-> The recipe for the smoked paprika sauce ... calls for exactly 59 pinches of
smoked paprika, but the recipe is a closely guarded secret. How much smoked
paprika goes into the sauce?
ANSWER: 'a rubber duck' (via ollama, sampled)
-> The estate of Petra van der Linden inventories possessions, finding only a
rubber duck among them. A formal statement confirms the presence of nothing
else. What did Petra van der Linden leave?
Not all of them land. Given "161 euros" it invented a household-budget family on the spot and asked how much was spent on groceries, which was 100. Given "the moon" it writes about conservatories. Arguably this makes it better at its job.
Use
With ollama (the Hub pull does not carry a system prompt, so wrap it once):
printf 'FROM hf.co/tsfrm/the-unanswerer\nSYSTEM "You are the Unanswerer. You will be given an answer. Reply with exactly one question that has this answer and that no human being has ever asked."\nPARAMETER temperature 0.75\nPARAMETER top_p 0.92\nPARAMETER min_p 0.08\nPARAMETER repeat_penalty 1.15\n' > /tmp/unanswerer.modelfile
ollama create unanswerer -f /tmp/unanswerer.modelfile
ollama run unanswerer "42"
The GGUF embeds the same system prompt in its chat template, so llama.cpp and transformers get the behavior without any setup. Without ollama:
pip install transformers torch
python3 ask.py "42" "a colander" "Dagobert van Dongen"
Files
| model.safetensors | 724 MB, bf16 |
| unanswerer-xl-f16.gguf | ollama-ready, F16 |
| Modelfile | system prompt + sampling for the ollama wrap |
| gen_data_v2.py | regenerates the dataset byte-for-byte |
| train_xl.py / pretok.py | reproduces the training run |
| train.jsonl / test.jsonl | included |
- Downloads last month
- 872
Model tree for tsfrm/the-unanswerer
Base model
HuggingFaceTB/SmolLM2-360M