Instructions to use wdndev/tiny_llm_sft_92m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wdndev/tiny_llm_sft_92m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wdndev/tiny_llm_sft_92m", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("wdndev/tiny_llm_sft_92m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wdndev/tiny_llm_sft_92m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wdndev/tiny_llm_sft_92m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wdndev/tiny_llm_sft_92m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wdndev/tiny_llm_sft_92m
- SGLang
How to use wdndev/tiny_llm_sft_92m 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 "wdndev/tiny_llm_sft_92m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wdndev/tiny_llm_sft_92m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "wdndev/tiny_llm_sft_92m" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wdndev/tiny_llm_sft_92m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wdndev/tiny_llm_sft_92m with Docker Model Runner:
docker model run hf.co/wdndev/tiny_llm_sft_92m
Commit History
-
Update modeling_tinyllm.py
Verified signaturec639a28 -
Delete pytorch_model.bin
Verified signature6b69f9f -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (a19b5ea3cb06a6cfe861394b661ab3e1e18a1a5d) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>5bef134
-
update model
922ce8c
-
Update generation_config.json
Verified signature17f2d8d -
Update README.md
Verified signaturee5dc2e3 -
Update README.md
Verified signature29c63c5 -
readme
9c674c5 -
update
27aa048 -
track bin
6522c72 -
initial commit
Verified signature72cf3ef