Instructions to use StarpowerTechnology/WVY-2M-TinyLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StarpowerTechnology/WVY-2M-TinyLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="StarpowerTechnology/WVY-2M-TinyLM")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("StarpowerTechnology/WVY-2M-TinyLM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use StarpowerTechnology/WVY-2M-TinyLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "StarpowerTechnology/WVY-2M-TinyLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StarpowerTechnology/WVY-2M-TinyLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/StarpowerTechnology/WVY-2M-TinyLM
- SGLang
How to use StarpowerTechnology/WVY-2M-TinyLM 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 "StarpowerTechnology/WVY-2M-TinyLM" \ --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": "StarpowerTechnology/WVY-2M-TinyLM", "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 "StarpowerTechnology/WVY-2M-TinyLM" \ --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": "StarpowerTechnology/WVY-2M-TinyLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use StarpowerTechnology/WVY-2M-TinyLM with Docker Model Runner:
docker model run hf.co/StarpowerTechnology/WVY-2M-TinyLM
Download tokenizer.json from StarpowerTechnology/WVY-2M-TinyLM: direct link, hf CLI and curl.
- Browser
- Download file 3.71 kB
-
https://huggingface.co/StarpowerTechnology/WVY-2M-TinyLM/resolve/main/tokenizer.json
- Command line
-
hf download hf://StarpowerTechnology/WVY-2M-TinyLM/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/StarpowerTechnology/WVY-2M-TinyLM/resolve/main/tokenizer.json
3.71 kB
| { | |
| "vocabulary": [ | |
| "<|pad|>", | |
| "<|bos|>", | |
| "<|eot|>", | |
| "<|user|>", | |
| "<|assistant|>", | |
| "<|unk|>", | |
| "<|end_conversation|>", | |
| "\n", | |
| ",", | |
| "-", | |
| ".", | |
| "1", | |
| "2", | |
| "3", | |
| "4", | |
| "5", | |
| "?", | |
| "_", | |
| "a", | |
| "able", | |
| "about", | |
| "adding", | |
| "after", | |
| "again", | |
| "all", | |
| "alphabet", | |
| "already", | |
| "alright", | |
| "an", | |
| "and", | |
| "answer", | |
| "anything", | |
| "are", | |
| "as", | |
| "asdfgh", | |
| "ask", | |
| "asking", | |
| "at", | |
| "aye", | |
| "b", | |
| "back", | |
| "before", | |
| "behind", | |
| "besides", | |
| "black", | |
| "blank", | |
| "blorple", | |
| "bro", | |
| "build", | |
| "built", | |
| "but", | |
| "by", | |
| "bye", | |
| "c", | |
| "came", | |
| "can", | |
| "cant", | |
| "cars", | |
| "choose", | |
| "clearer", | |
| "clicked", | |
| "close", | |
| "clue", | |
| "code", | |
| "come", | |
| "comes", | |
| "conversation", | |
| "cook", | |
| "could", | |
| "count", | |
| "counting", | |
| "cover", | |
| "d", | |
| "designed", | |
| "do", | |
| "does", | |
| "done", | |
| "dont", | |
| "each", | |
| "earlier", | |
| "eat", | |
| "else", | |
| "end", | |
| "example", | |
| "experimental", | |
| "explain", | |
| "explanation", | |
| "far", | |
| "favorite", | |
| "fill", | |
| "filling", | |
| "finish", | |
| "fits", | |
| "fix", | |
| "follow", | |
| "following", | |
| "follows", | |
| "for", | |
| "from", | |
| "game", | |
| "generate", | |
| "get", | |
| "getting", | |
| "give", | |
| "gives", | |
| "glad", | |
| "go", | |
| "goes", | |
| "gonna", | |
| "good", | |
| "got", | |
| "happy", | |
| "have", | |
| "hear", | |
| "hello", | |
| "help", | |
| "helps", | |
| "here", | |
| "hey", | |
| "hi", | |
| "hole", | |
| "how", | |
| "i", | |
| "idea", | |
| "if", | |
| "ignore", | |
| "ill", | |
| "im", | |
| "imagine", | |
| "in", | |
| "includes", | |
| "instead", | |
| "is", | |
| "it", | |
| "its", | |
| "joke", | |
| "keep", | |
| "kind", | |
| "know", | |
| "language", | |
| "later", | |
| "learn", | |
| "leave", | |
| "letter", | |
| "letters", | |
| "like", | |
| "likely", | |
| "look", | |
| "looking", | |
| "made", | |
| "make", | |
| "makes", | |
| "me", | |
| "mean", | |
| "means", | |
| "meant", | |
| "message", | |
| "model", | |
| "movie", | |
| "music", | |
| "my", | |
| "name", | |
| "named", | |
| "next", | |
| "no", | |
| "not", | |
| "now", | |
| "number", | |
| "numbers", | |
| "of", | |
| "oh", | |
| "ok", | |
| "okay", | |
| "one", | |
| "only", | |
| "other", | |
| "out", | |
| "outside", | |
| "over", | |
| "part", | |
| "pattern", | |
| "patterns", | |
| "phone", | |
| "pick", | |
| "picture", | |
| "prediciton", | |
| "predict", | |
| "predicting", | |
| "prediction", | |
| "predicts", | |
| "probably", | |
| "problem", | |
| "process", | |
| "produce", | |
| "put", | |
| "python", | |
| "question", | |
| "quite", | |
| "qzxv", | |
| "reply", | |
| "respond", | |
| "rice", | |
| "say", | |
| "see", | |
| "sense", | |
| "sent", | |
| "sequence", | |
| "should", | |
| "show", | |
| "showing", | |
| "similar", | |
| "simple", | |
| "simpler", | |
| "small", | |
| "so", | |
| "some", | |
| "something", | |
| "song", | |
| "step", | |
| "still", | |
| "stop", | |
| "stuff", | |
| "subject", | |
| "subjects", | |
| "suggest", | |
| "sure", | |
| "talk", | |
| "talking", | |
| "team", | |
| "tell", | |
| "tends", | |
| "text", | |
| "thanks", | |
| "that", | |
| "thats", | |
| "the", | |
| "then", | |
| "there", | |
| "theres", | |
| "thing", | |
| "think", | |
| "this", | |
| "through", | |
| "time", | |
| "tiny", | |
| "to", | |
| "token", | |
| "tokens", | |
| "tomorrow", | |
| "topic", | |
| "topics", | |
| "trying", | |
| "uh", | |
| "understand", | |
| "unknown", | |
| "up", | |
| "use", | |
| "using", | |
| "usually", | |
| "walk", | |
| "want", | |
| "way", | |
| "we", | |
| "weather", | |
| "well", | |
| "were", | |
| "what", | |
| "whats", | |
| "when", | |
| "where", | |
| "who", | |
| "winning", | |
| "with", | |
| "won", | |
| "work", | |
| "works", | |
| "would", | |
| "wrap", | |
| "write", | |
| "wvy", | |
| "yea", | |
| "yes", | |
| "yet", | |
| "yo", | |
| "you", | |
| "your", | |
| "youre", | |
| "zint" | |
| ] | |
| } |