Text Generation
Transformers
Safetensors
PyTorch
byte-level
tiny-lm
micro-model
research
from-scratch
rope
swiglu
muon-optimizer
custom-code
notokenlm_microgen
Instructions to use omurberaisik/NoTokenLM-MicroGen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use omurberaisik/NoTokenLM-MicroGen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="omurberaisik/NoTokenLM-MicroGen")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("omurberaisik/NoTokenLM-MicroGen", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use omurberaisik/NoTokenLM-MicroGen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "omurberaisik/NoTokenLM-MicroGen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "omurberaisik/NoTokenLM-MicroGen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/omurberaisik/NoTokenLM-MicroGen
- SGLang
How to use omurberaisik/NoTokenLM-MicroGen 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 "omurberaisik/NoTokenLM-MicroGen" \ --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": "omurberaisik/NoTokenLM-MicroGen", "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 "omurberaisik/NoTokenLM-MicroGen" \ --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": "omurberaisik/NoTokenLM-MicroGen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use omurberaisik/NoTokenLM-MicroGen with Docker Model Runner:
docker model run hf.co/omurberaisik/NoTokenLM-MicroGen
Update README.md
Browse files
README.md
CHANGED
|
@@ -29,6 +29,7 @@ pipeline_tag: text-generation
|
|
| 29 |
**Tokenizer-free, byte-level language models, trained entirely from scratch**
|
| 30 |
|
| 31 |
[](https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/blob/main/notebook.ipynb)
|
|
|
|
| 32 |
|
| 33 |
</div>
|
| 34 |
|
|
@@ -195,6 +196,7 @@ print(output)
|
|
| 195 |
Or use the model picker below to jump straight to a ready-to-run notebook — it loads whichever model you pick and runs generation for you:
|
| 196 |
|
| 197 |
[](https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/blob/main/notebook.ipynb)
|
|
|
|
| 198 |
|
| 199 |
> Note: because this single repository hosts six separate checkpoints (one per subfolder) rather than one model at the repo root, Hugging Face's default "Use this model" widget doesn't correctly represent it — use the snippet or the notebook above instead.
|
| 200 |
|
|
|
|
| 29 |
**Tokenizer-free, byte-level language models, trained entirely from scratch**
|
| 30 |
|
| 31 |
[](https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/blob/main/notebook.ipynb)
|
| 32 |
+
[](https://www.kaggle.com/kernels/welcome?src=https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/resolve/main/notebook.ipynb)
|
| 33 |
|
| 34 |
</div>
|
| 35 |
|
|
|
|
| 196 |
Or use the model picker below to jump straight to a ready-to-run notebook — it loads whichever model you pick and runs generation for you:
|
| 197 |
|
| 198 |
[](https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/blob/main/notebook.ipynb)
|
| 199 |
+
[](https://www.kaggle.com/kernels/welcome?src=https://huggingface.co/omurberaisik/NoTokenLM-MicroGen/resolve/main/notebook.ipynb)
|
| 200 |
|
| 201 |
> Note: because this single repository hosts six separate checkpoints (one per subfolder) rather than one model at the repo root, Hugging Face's default "Use this model" widget doesn't correctly represent it — use the snippet or the notebook above instead.
|
| 202 |
|