Instructions to use moomooai/moollm-1.0-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moomooai/moollm-1.0-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="moomooai/moollm-1.0-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("moomooai/moollm-1.0-tiny") model = AutoModelForCausalLM.from_pretrained("moomooai/moollm-1.0-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use moomooai/moollm-1.0-tiny 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 moomooai/moollm-1.0-tiny # Run inference directly in the terminal: llama cli -hf moomooai/moollm-1.0-tiny
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf moomooai/moollm-1.0-tiny # Run inference directly in the terminal: llama cli -hf moomooai/moollm-1.0-tiny
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 moomooai/moollm-1.0-tiny # Run inference directly in the terminal: ./build/bin/llama cli -hf moomooai/moollm-1.0-tiny
Use Docker
docker model run hf.co/moomooai/moollm-1.0-tiny
- Llama new
- LM Studio
- Jan
- vLLM
How to use moomooai/moollm-1.0-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "moomooai/moollm-1.0-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moomooai/moollm-1.0-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/moomooai/moollm-1.0-tiny
- SGLang
How to use moomooai/moollm-1.0-tiny 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 "moomooai/moollm-1.0-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moomooai/moollm-1.0-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "moomooai/moollm-1.0-tiny" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moomooai/moollm-1.0-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use moomooai/moollm-1.0-tiny with Ollama:
ollama run hf.co/moomooai/moollm-1.0-tiny
- Unsloth Desktop
- Docker Model Runner
How to use moomooai/moollm-1.0-tiny with Docker Model Runner:
docker model run hf.co/moomooai/moollm-1.0-tiny
- Lemonade
How to use moomooai/moollm-1.0-tiny with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull moomooai/moollm-1.0-tiny
Run and chat with the model
lemonade run user.moollm-1.0-tiny-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
MooLLM-1.0-Tiny
Moove over, big models!
MooLLM-1.0-Tiny is the second model in the MooLLM series (~15M parameters). The Tiny tier is built for smart T9 / predictive typing, lightweight text completion, and embedded experiments!
WARNING: This is a base model (pre-trained only, no instruction tuning). It is not capable of chatting or answering questions.
Sizing
| Name | Parameter count | Usecase |
|---|---|---|
| Air | ~7M | Experiments, tiny embedded devices, ultra fast next-token prediction. |
| Tiny | ~15M | Smart T9 / predictive typing, lightweight text completion. |
| Flash | ~30M | Context-aware autocomplete, speculative decoding draft model. |
| Pro | ~50M | Long-context text continuation, base model for custom fine-tuning. |
Training information
| Parameter | Value |
|---|---|
| Hours training | 17h 20m 51s (including 9h 500MHz quiet night mode) |
| Device used | AMD Radeon RX6600 (25W night / 60W day average, capped at 100W) |
| Framework used | Burn + custom Mamba2 implementation in Rust |
| Scaling | 1x Chinchilla compute-optimal (~300M tokens) |
| Co2 emissions | ~554g (estimated for full system ~84W avg, Russian grid) |
Evaluation
Sample Outputs
Prompt: The cows in this field are (cowllm sample)
The cows in this field are screwed off. Who is the man? A laugh of the ten-finger.
"Oh--'ty wakeful. No, Joe,
Prompt: Once upon a time (cowllm sample)
Once upon a time Indignant with it grew but in motion. Time had fallen into the middle of the moon. In memory of the past spring Jemri--
Prompt: The history of dairy farming begins (llama.cpp)
The history of dairy farming begins on March 23, 2024. Wisconsin Customers," he said.
"I'm not sure I should have gone in the road. I remember the morning and the early afternoon I could see.
Benchmarks
| Benchmark | Amir: tiny-llm (13M) | MooMooAI: MooLLM-1.0-Air (6.76M) | MooMooAI: MooLLM-1.0-Tiny (14.8M) |
|---|---|---|---|
| -(CoderPPL) (OOD) | -43.4969 | -76.8079 | -50.6323 |
| HellaSwag | 27.00 | 24.85 | 24.94 |
| MMLU | 22.739 | 24.96 | 25.82 |
| WikiText-2 (-ppl) | -162.4178 | -218.9829 | -200.1136 |
WARNING: CoderPPL is out-of-distribution for MooLLM-1.0, no code-specific datasets were included during training.
Quickstart
Python (transformers)
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "moomooai/moollm-1.0-tiny"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
inputs = tokenizer("The history of dairy farming begins", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=40, do_sample=True, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
llama.cpp
The self-written framework we used for training also outputs an unquantized original .gguf. It's available in model.gguf, and you can run it directly in llama.cpp.
llama-completion -hf moomooai/moollm-1.0-tiny -p "The history of dairy farming begins" -n 64 --temp 0.7 --repeat-penalty 1.1
Trained on 100% grass-fed tokens.
- Downloads last month
- -