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
Upload 5 files
Browse files- model_config.json +9 -0
- tokenizer.json +292 -0
- training_log.json +0 -0
- wvy_finetuned.pt +3 -0
- wvy_pretrained.pt +3 -0
model_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocab_size": 288,
|
| 3 |
+
"context": 512,
|
| 4 |
+
"width": 192,
|
| 5 |
+
"heads": 6,
|
| 6 |
+
"layers": 4,
|
| 7 |
+
"ff_width": 768,
|
| 8 |
+
"dropout": 0.1
|
| 9 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"vocabulary": [
|
| 3 |
+
"<|pad|>",
|
| 4 |
+
"<|bos|>",
|
| 5 |
+
"<|eot|>",
|
| 6 |
+
"<|user|>",
|
| 7 |
+
"<|assistant|>",
|
| 8 |
+
"<|unk|>",
|
| 9 |
+
"<|end_conversation|>",
|
| 10 |
+
"\n",
|
| 11 |
+
",",
|
| 12 |
+
"-",
|
| 13 |
+
".",
|
| 14 |
+
"1",
|
| 15 |
+
"2",
|
| 16 |
+
"3",
|
| 17 |
+
"4",
|
| 18 |
+
"5",
|
| 19 |
+
"?",
|
| 20 |
+
"_",
|
| 21 |
+
"a",
|
| 22 |
+
"able",
|
| 23 |
+
"about",
|
| 24 |
+
"adding",
|
| 25 |
+
"after",
|
| 26 |
+
"again",
|
| 27 |
+
"all",
|
| 28 |
+
"alphabet",
|
| 29 |
+
"already",
|
| 30 |
+
"alright",
|
| 31 |
+
"an",
|
| 32 |
+
"and",
|
| 33 |
+
"answer",
|
| 34 |
+
"anything",
|
| 35 |
+
"are",
|
| 36 |
+
"as",
|
| 37 |
+
"asdfgh",
|
| 38 |
+
"ask",
|
| 39 |
+
"asking",
|
| 40 |
+
"at",
|
| 41 |
+
"aye",
|
| 42 |
+
"b",
|
| 43 |
+
"back",
|
| 44 |
+
"before",
|
| 45 |
+
"behind",
|
| 46 |
+
"besides",
|
| 47 |
+
"black",
|
| 48 |
+
"blank",
|
| 49 |
+
"blorple",
|
| 50 |
+
"bro",
|
| 51 |
+
"build",
|
| 52 |
+
"built",
|
| 53 |
+
"but",
|
| 54 |
+
"by",
|
| 55 |
+
"bye",
|
| 56 |
+
"c",
|
| 57 |
+
"came",
|
| 58 |
+
"can",
|
| 59 |
+
"cant",
|
| 60 |
+
"cars",
|
| 61 |
+
"choose",
|
| 62 |
+
"clearer",
|
| 63 |
+
"clicked",
|
| 64 |
+
"close",
|
| 65 |
+
"clue",
|
| 66 |
+
"code",
|
| 67 |
+
"come",
|
| 68 |
+
"comes",
|
| 69 |
+
"conversation",
|
| 70 |
+
"cook",
|
| 71 |
+
"could",
|
| 72 |
+
"count",
|
| 73 |
+
"counting",
|
| 74 |
+
"cover",
|
| 75 |
+
"d",
|
| 76 |
+
"designed",
|
| 77 |
+
"do",
|
| 78 |
+
"does",
|
| 79 |
+
"done",
|
| 80 |
+
"dont",
|
| 81 |
+
"each",
|
| 82 |
+
"earlier",
|
| 83 |
+
"eat",
|
| 84 |
+
"else",
|
| 85 |
+
"end",
|
| 86 |
+
"example",
|
| 87 |
+
"experimental",
|
| 88 |
+
"explain",
|
| 89 |
+
"explanation",
|
| 90 |
+
"far",
|
| 91 |
+
"favorite",
|
| 92 |
+
"fill",
|
| 93 |
+
"filling",
|
| 94 |
+
"finish",
|
| 95 |
+
"fits",
|
| 96 |
+
"fix",
|
| 97 |
+
"follow",
|
| 98 |
+
"following",
|
| 99 |
+
"follows",
|
| 100 |
+
"for",
|
| 101 |
+
"from",
|
| 102 |
+
"game",
|
| 103 |
+
"generate",
|
| 104 |
+
"get",
|
| 105 |
+
"getting",
|
| 106 |
+
"give",
|
| 107 |
+
"gives",
|
| 108 |
+
"glad",
|
| 109 |
+
"go",
|
| 110 |
+
"goes",
|
| 111 |
+
"gonna",
|
| 112 |
+
"good",
|
| 113 |
+
"got",
|
| 114 |
+
"happy",
|
| 115 |
+
"have",
|
| 116 |
+
"hear",
|
| 117 |
+
"hello",
|
| 118 |
+
"help",
|
| 119 |
+
"helps",
|
| 120 |
+
"here",
|
| 121 |
+
"hey",
|
| 122 |
+
"hi",
|
| 123 |
+
"hole",
|
| 124 |
+
"how",
|
| 125 |
+
"i",
|
| 126 |
+
"idea",
|
| 127 |
+
"if",
|
| 128 |
+
"ignore",
|
| 129 |
+
"ill",
|
| 130 |
+
"im",
|
| 131 |
+
"imagine",
|
| 132 |
+
"in",
|
| 133 |
+
"includes",
|
| 134 |
+
"instead",
|
| 135 |
+
"is",
|
| 136 |
+
"it",
|
| 137 |
+
"its",
|
| 138 |
+
"joke",
|
| 139 |
+
"keep",
|
| 140 |
+
"kind",
|
| 141 |
+
"know",
|
| 142 |
+
"language",
|
| 143 |
+
"later",
|
| 144 |
+
"learn",
|
| 145 |
+
"leave",
|
| 146 |
+
"letter",
|
| 147 |
+
"letters",
|
| 148 |
+
"like",
|
| 149 |
+
"likely",
|
| 150 |
+
"look",
|
| 151 |
+
"looking",
|
| 152 |
+
"made",
|
| 153 |
+
"make",
|
| 154 |
+
"makes",
|
| 155 |
+
"me",
|
| 156 |
+
"mean",
|
| 157 |
+
"means",
|
| 158 |
+
"meant",
|
| 159 |
+
"message",
|
| 160 |
+
"model",
|
| 161 |
+
"movie",
|
| 162 |
+
"music",
|
| 163 |
+
"my",
|
| 164 |
+
"name",
|
| 165 |
+
"named",
|
| 166 |
+
"next",
|
| 167 |
+
"no",
|
| 168 |
+
"not",
|
| 169 |
+
"now",
|
| 170 |
+
"number",
|
| 171 |
+
"numbers",
|
| 172 |
+
"of",
|
| 173 |
+
"oh",
|
| 174 |
+
"ok",
|
| 175 |
+
"okay",
|
| 176 |
+
"one",
|
| 177 |
+
"only",
|
| 178 |
+
"other",
|
| 179 |
+
"out",
|
| 180 |
+
"outside",
|
| 181 |
+
"over",
|
| 182 |
+
"part",
|
| 183 |
+
"pattern",
|
| 184 |
+
"patterns",
|
| 185 |
+
"phone",
|
| 186 |
+
"pick",
|
| 187 |
+
"picture",
|
| 188 |
+
"prediciton",
|
| 189 |
+
"predict",
|
| 190 |
+
"predicting",
|
| 191 |
+
"prediction",
|
| 192 |
+
"predicts",
|
| 193 |
+
"probably",
|
| 194 |
+
"problem",
|
| 195 |
+
"process",
|
| 196 |
+
"produce",
|
| 197 |
+
"put",
|
| 198 |
+
"python",
|
| 199 |
+
"question",
|
| 200 |
+
"quite",
|
| 201 |
+
"qzxv",
|
| 202 |
+
"reply",
|
| 203 |
+
"respond",
|
| 204 |
+
"rice",
|
| 205 |
+
"say",
|
| 206 |
+
"see",
|
| 207 |
+
"sense",
|
| 208 |
+
"sent",
|
| 209 |
+
"sequence",
|
| 210 |
+
"should",
|
| 211 |
+
"show",
|
| 212 |
+
"showing",
|
| 213 |
+
"similar",
|
| 214 |
+
"simple",
|
| 215 |
+
"simpler",
|
| 216 |
+
"small",
|
| 217 |
+
"so",
|
| 218 |
+
"some",
|
| 219 |
+
"something",
|
| 220 |
+
"song",
|
| 221 |
+
"step",
|
| 222 |
+
"still",
|
| 223 |
+
"stop",
|
| 224 |
+
"stuff",
|
| 225 |
+
"subject",
|
| 226 |
+
"subjects",
|
| 227 |
+
"suggest",
|
| 228 |
+
"sure",
|
| 229 |
+
"talk",
|
| 230 |
+
"talking",
|
| 231 |
+
"team",
|
| 232 |
+
"tell",
|
| 233 |
+
"tends",
|
| 234 |
+
"text",
|
| 235 |
+
"thanks",
|
| 236 |
+
"that",
|
| 237 |
+
"thats",
|
| 238 |
+
"the",
|
| 239 |
+
"then",
|
| 240 |
+
"there",
|
| 241 |
+
"theres",
|
| 242 |
+
"thing",
|
| 243 |
+
"think",
|
| 244 |
+
"this",
|
| 245 |
+
"through",
|
| 246 |
+
"time",
|
| 247 |
+
"tiny",
|
| 248 |
+
"to",
|
| 249 |
+
"token",
|
| 250 |
+
"tokens",
|
| 251 |
+
"tomorrow",
|
| 252 |
+
"topic",
|
| 253 |
+
"topics",
|
| 254 |
+
"trying",
|
| 255 |
+
"uh",
|
| 256 |
+
"understand",
|
| 257 |
+
"unknown",
|
| 258 |
+
"up",
|
| 259 |
+
"use",
|
| 260 |
+
"using",
|
| 261 |
+
"usually",
|
| 262 |
+
"walk",
|
| 263 |
+
"want",
|
| 264 |
+
"way",
|
| 265 |
+
"we",
|
| 266 |
+
"weather",
|
| 267 |
+
"well",
|
| 268 |
+
"were",
|
| 269 |
+
"what",
|
| 270 |
+
"whats",
|
| 271 |
+
"when",
|
| 272 |
+
"where",
|
| 273 |
+
"who",
|
| 274 |
+
"winning",
|
| 275 |
+
"with",
|
| 276 |
+
"won",
|
| 277 |
+
"work",
|
| 278 |
+
"works",
|
| 279 |
+
"would",
|
| 280 |
+
"wrap",
|
| 281 |
+
"write",
|
| 282 |
+
"wvy",
|
| 283 |
+
"yea",
|
| 284 |
+
"yes",
|
| 285 |
+
"yet",
|
| 286 |
+
"yo",
|
| 287 |
+
"you",
|
| 288 |
+
"your",
|
| 289 |
+
"youre",
|
| 290 |
+
"zint"
|
| 291 |
+
]
|
| 292 |
+
}
|
training_log.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
wvy_finetuned.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:747ba88430c8d46bc3d240040ff6c69df72d9795ef41695d0c3e1eda5a64f619
|
| 3 |
+
size 7961294
|
wvy_pretrained.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2fde838f720b3acda3b13b177f494aebe08c7064f71cfade021d0895ac273f27
|
| 3 |
+
size 7961345
|