Views
No views yet
openbmb/MiniCPM5-1B for Lost Frequency Radio, an interactive radio from parallel universes built for the Hugging Face Build Small Hackathon 2026 (track 🍄 An Adventure in Thousand Token Wood).| Token | Effect on the radio |
|---|---|
[JINGLE] | light pulse + arpeggio |
[INTERFERENCIA] | screen glitch + burst of static |
[CORTE COMERCIAL] | click + dimming |
[FIN DE TRANSMISION] | display fade and signal drop |
1from llama_cpp import Llama
2
3llm = Llama(model_path="MiniCPM5-1B-lost-frequency-radio-Q4_K_M.gguf", n_ctx=2048)
4
5prompt = (
6 "<s><|im_start|>system\nYou are the official voice of the Jupiter Weather "
7 "Service, year 2187. You write radio scripts in Spanish.<|im_end|>\n"
8 "<|im_start|>user\nWrite tonight's transmission. On-air script only."
9 "<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n"
10)
11
12tokens = llm.tokenize(prompt.encode(), add_bos=False, special=True)
13out = llm.create_completion(prompt=tokens, max_tokens=220, temperature=0.7,
14 stop=["<|im_end|>"])
15print(out["choices"][0]["text"])<think>\n\n</think>\n\n prefill disables MiniCPM5's reasoning mode (equivalent to enable_thinking=False in the chat template).MiniCPM5-1B-lost-frequency-radio-Q4_K_M.gguf: Q4_K_M quantization (~651 MB), the one the Space useslora-adapter/: LoRA adapters (to reproduce or continue training)