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")# pip install -U transformers accelerate # 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
Commit History
-
Fix torch/torchvision version mismatch causing PreTrainedModel import error; add Kaggle support
Verified signaturec06f7ad -
Publish shared configuration/modeling code
Verified signature6c298b4 -
Update README.md
Verified signaturedbf0673 -
Update README.md
Verified signature4acec87 -
Update README.md
Verified signaturee3b152f -
Update README.md
Verified signature7d83795 -
Update notebook.ipynb
Verified signature0cb061b -
Update README.md
Verified signaturece4b4f4 -
Update README.md
Verified signaturee1e3e75 -
Update MicroGen.png
Verified signature4a80e51 -
Update README.md
Verified signature665d8fc -
Publish 3.7 (500,560 params)
Verified signaturea8ebcaa -
Publish 3.7 (500,560 params)
Verified signatured49a644 -
Publish 3.6 (500,560 params)
Verified signaturebb88255 -
Publish 3.6 (500,560 params)
Verified signaturef5bf229 -
Publish 3.5 (344,768 params)
Verified signature7c37298 -
Publish 3.5 (344,768 params)
Verified signature33bb392 -
Publish 2.7 (59,952 params)
Verified signature4181137 -
Publish 2.7 (59,952 params)
Verified signature10fc8fb -
Publish 2.6 (14,952 params)
Verified signature8fc4128 -
Publish 2.6 (14,952 params)
Verified signaturee6967de -
Publish 2.5 (1,925 params)
Verified signature6600647 -
Publish 2.5 (1,925 params)
Verified signature25ab153 -
Publish shared configuration/modeling code
Verified signature5e6b2c9 -
Publish shared configuration/modeling code
Verified signature7446d1c -
initial commit
Verified signature5b7fb27