Instructions to use xcx0902/tiny_llm_transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xcx0902/tiny_llm_transformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="xcx0902/tiny_llm_transformer")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("xcx0902/tiny_llm_transformer") model = AutoModelForCausalLM.from_pretrained("xcx0902/tiny_llm_transformer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use xcx0902/tiny_llm_transformer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "xcx0902/tiny_llm_transformer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "xcx0902/tiny_llm_transformer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/xcx0902/tiny_llm_transformer
- SGLang
How to use xcx0902/tiny_llm_transformer 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 "xcx0902/tiny_llm_transformer" \ --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": "xcx0902/tiny_llm_transformer", "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 "xcx0902/tiny_llm_transformer" \ --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": "xcx0902/tiny_llm_transformer", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use xcx0902/tiny_llm_transformer with Docker Model Runner:
docker model run hf.co/xcx0902/tiny_llm_transformer
Download checkpoints/checkpoint-5000/optimizer.pt from xcx0902/tiny_llm_transformer: direct link, hf CLI and curl.
- Browser
- Download file 1.23 GB
-
https://huggingface.co/xcx0902/tiny_llm_transformer/resolve/main/checkpoints/checkpoint-5000/optimizer.pt
- Command line
-
hf download hf://xcx0902/tiny_llm_transformer/checkpoints/checkpoint-5000/optimizer.pt
-
curl -L -o optimizer.pt https://huggingface.co/xcx0902/tiny_llm_transformer/resolve/main/checkpoints/checkpoint-5000/optimizer.pt
1.23 GB
- Xet hash:
- 2d5d00c8570705ca044c99169ff5df31a2e3467b8949ea9202f3ddf544e72da4
- Size of remote file:
- 1.23 GB
- SHA256:
- e2ad17665791e30430a135fe900c080592800c93238783a5945df6e7bba0856e
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.