Instructions to use ScarletKc/Typeling-25M-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 ScarletKc/Typeling-25M-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 ScarletKc/Typeling-25M-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf ScarletKc/Typeling-25M-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ScarletKc/Typeling-25M-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf ScarletKc/Typeling-25M-GGUF:Q8_0
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 ScarletKc/Typeling-25M-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf ScarletKc/Typeling-25M-GGUF:Q8_0
Use Docker
docker model run hf.co/ScarletKc/Typeling-25M-GGUF:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use ScarletKc/Typeling-25M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ScarletKc/Typeling-25M-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ScarletKc/Typeling-25M-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ScarletKc/Typeling-25M-GGUF:Q8_0
- Ollama
How to use ScarletKc/Typeling-25M-GGUF with Ollama:
ollama run hf.co/ScarletKc/Typeling-25M-GGUF:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use ScarletKc/Typeling-25M-GGUF with Docker Model Runner:
docker model run hf.co/ScarletKc/Typeling-25M-GGUF:Q8_0
- Lemonade
How to use ScarletKc/Typeling-25M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ScarletKc/Typeling-25M-GGUF:Q8_0
Run and chat with the model
lemonade run user.Typeling-25M-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
Typeling-25M-GGUF
Typeling-25M, a 25M-parameter English language model for typing prediction, as a GGUF file for llama.cpp.
| File | Size | Quality against 16-bit weights |
|---|---|---|
Typeling-25M-Q8_0.gguf |
27.6 MB | perplexity +0.08%, mean KL divergence 0.0009, same top token 97.9% of the time |
Measured with llama-perplexity --kl-divergence on 380k characters of held-out chat and web text (190 chunks of 512
tokens), against an F16 conversion of the same weights. There is no 4-bit file: at this size Q4 would save about 10
MB, and what it would cost this model was not measured. You can make one from the
16-bit weights with llama.cpp's convert_hf_to_gguf.py and
llama-quantize.
What the model is for
Typeling-25M predicts the rest of the word being typed and the next word, for ghost text and candidate bars in chat and everyday writing. It is a small base model, not a chat or instruction model.
The model predicts tokens, not words. The word-level suggestions, typo repair and benchmark results on the
main model card come from the Typeling decoder
(typeling/lm.py, pip install "typeling[lm]"),
which runs the 16-bit weights with PyTorch. With llama.cpp you get raw next-token predictions; the decoder is the
reference for building word suggestions on top of them. This file has not been through the word-level benchmark, and
porting the decoder to llama.cpp is issue #2.
Input format
- Texts in training were separated by
</s>(token 2). Start the prompt with</s>. - The original tokenizer puts a space before every text, so the model expects
" Hello", not"Hello", as the first word. llama.cpp does not add this space: write it yourself. - llama.cpp adds no BOS token for this model; none is needed.
- Predictions are best when the text ends right after a word. After a trailing space the model has seen fewer examples (1% of its training words).
llama-completion -m Typeling-25M-Q8_0.gguf -p "</s> Let me know if" -n 6 --temp 0 -no-cnv
# Let me know if you need any help.
"</s> Thank you so" tokenizes to [2, " Thank", " you", " so"], the same as the Transformers tokenizer.
Conversion
Converted with llama.cpp b11953 (convert_hf_to_gguf.py --outtype q8_0) by
lm/export.py. The converter does not recognize this
tokenizer's pre-tokenizer, which uses GPT-2's byte-level regex, so the export maps it to gpt-2.
License
Apache License 2.0, like the base model
SupraLabs/Supra2-Medium-Base. The training data and its
attributions are listed on the main model card and in NOTICE.
- Downloads last month
- 100
8-bit