Text Generation
Transformers
Safetensors
English
qwen3
typing
autocomplete
word-prediction
next-word-prediction
keyboard
typo-correction
text-generation-inference
Instructions to use ScarletKc/Typeling-25M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ScarletKc/Typeling-25M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ScarletKc/Typeling-25M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ScarletKc/Typeling-25M") model = AutoModelForCausalLM.from_pretrained("ScarletKc/Typeling-25M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ScarletKc/Typeling-25M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ScarletKc/Typeling-25M" # 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", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ScarletKc/Typeling-25M
- SGLang
How to use ScarletKc/Typeling-25M 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 "ScarletKc/Typeling-25M" \ --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": "ScarletKc/Typeling-25M", "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 "ScarletKc/Typeling-25M" \ --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": "ScarletKc/Typeling-25M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ScarletKc/Typeling-25M with Docker Model Runner:
docker model run hf.co/ScarletKc/Typeling-25M
Download NOTICE from ScarletKc/Typeling-25M: direct link, hf CLI and curl.
- Browser
- Download file 2.69 kB
-
https://huggingface.co/ScarletKc/Typeling-25M/resolve/main/NOTICE
- Command line
-
hf download hf://ScarletKc/Typeling-25M/NOTICE
-
curl -L -o NOTICE https://huggingface.co/ScarletKc/Typeling-25M/resolve/main/NOTICE
2.69 kB
| Typeling | |
| Copyright 2026 The Typeling Authors | |
| The source code is licensed under the Apache License, Version 2.0; see LICENSE. | |
| The model file typeling/en.bin consists of n-gram probabilities (pruned and quantized) | |
| computed from the datasets below. It is licensed under the Open Data Commons Attribution | |
| License (ODC-By) v1.0 (https://opendatacommons.org/licenses/by/1-0/). Please retain the | |
| following attributions when redistributing or using the model: | |
| - FineWeb (HuggingFaceFW/fineweb), Hugging Face — ODC-By 1.0; use is also subject to the | |
| Common Crawl Terms of Use | |
| https://huggingface.co/datasets/HuggingFaceFW/fineweb | |
| - SODA (allenai/soda), Kim et al. 2022, "SODA: Million-scale Dialogue Distillation with Social | |
| Commonsense Contextualization" — CC BY 4.0 | |
| https://huggingface.co/datasets/allenai/soda | |
| - WildChat-1M (allenai/WildChat-1M), Zhao et al. 2024, "WildChat: 1M ChatGPT Interaction Logs in | |
| the Wild" — ODC-By 1.0 | |
| https://huggingface.co/datasets/allenai/WildChat-1M | |
| - OpenAssistant Conversations Release 2 (OpenAssistant/oasst2), LAION — Apache License 2.0 | |
| https://huggingface.co/datasets/OpenAssistant/oasst2 | |
| - Ubuntu IRC logs (https://irclogs.ubuntu.com), released into the Public Domain, as packaged by | |
| the Common Pile v0.1 (common-pile/ubuntu_irc_filtered), Kandpal et al. 2025 | |
| https://huggingface.co/datasets/common-pile/ubuntu_irc_filtered | |
| The language model Typeling-25M (https://huggingface.co/scarletkc/Typeling-25M), used by | |
| typeling/lm.py and distributed separately, is licensed under the Apache License, Version 2.0. It | |
| is SupraLabs/Supra2-Medium-Base (Apache License 2.0, | |
| https://huggingface.co/SupraLabs/Supra2-Medium-Base) further trained on the datasets above. | |
| The words that the model never suggests by default are taken from the List of Dirty, Naughty, | |
| Obscene, and Otherwise Bad Words — CC BY 4.0 | |
| https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words | |
| Likely misspellings are identified with word lists generated from the English Speller Database | |
| (ESDB, formerly SCOWL), https://github.com/en-wl/wordlist, under the following notice: | |
| Copyright 2000-2026 by Kevin Atkinson | |
| Permission to use, copy, modify, distribute, and sell any part of the English | |
| Speller Database (ESDB, previously known as SCOWLv2), or word lists | |
| created from it, is hereby granted without fee, provided that the above | |
| copyright notice appears in all copies and that both the above copyright | |
| notice and this notice appear in supporting documentation. Kevin Atkinson | |
| makes no representations about the suitability of this database for any | |
| purpose. It is provided "as is" without express or implied warranty. | |