Text Generation
Transformers
Safetensors
English
llama
npu
npu-training
npu-pretraining
inference-accelerator
backpropagation
from-scratch
pretraining
pretrained-from-scratch
base-model
vkore
vkte
vidraft
final-bench
small-language-model
slm
language-model
causal-lm
decoder-only
transformer
rope
swiglu
rmsnorm
gqa
byte-level
fineweb-edu
edge-ai
on-device
low-power
cost-efficient
blackwell-alternative
gpu-alternative
korea
korean-ai
research
text-generation-inference
Instructions to use FINAL-Bench/VKORE-325M-NPU-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FINAL-Bench/VKORE-325M-NPU-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FINAL-Bench/VKORE-325M-NPU-Base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FINAL-Bench/VKORE-325M-NPU-Base") model = AutoModelForCausalLM.from_pretrained("FINAL-Bench/VKORE-325M-NPU-Base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FINAL-Bench/VKORE-325M-NPU-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/VKORE-325M-NPU-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FINAL-Bench/VKORE-325M-NPU-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FINAL-Bench/VKORE-325M-NPU-Base
- SGLang
How to use FINAL-Bench/VKORE-325M-NPU-Base 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 "FINAL-Bench/VKORE-325M-NPU-Base" \ --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": "FINAL-Bench/VKORE-325M-NPU-Base", "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 "FINAL-Bench/VKORE-325M-NPU-Base" \ --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": "FINAL-Bench/VKORE-325M-NPU-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FINAL-Bench/VKORE-325M-NPU-Base with Docker Model Runner:
docker model run hf.co/FINAL-Bench/VKORE-325M-NPU-Base
Add B200 GPU reference weights (same init, data, schedule) for direct comparison
Browse files- b200_reference/README.md +16 -0
- b200_reference/config.json +32 -32
- b200_reference/generation_config.json +7 -7
b200_reference/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# B200 GPU reference weights
|
| 2 |
+
|
| 3 |
+
The same VKORE-325M model trained on a single B200 GPU with the same initialization, the same data and the same learning rate schedule as the NPU run in the parent folder. Published so anyone can compare the two runs directly.
|
| 4 |
+
|
| 5 |
+
```python
|
| 6 |
+
from transformers import AutoModelForCausalLM
|
| 7 |
+
npu = AutoModelForCausalLM.from_pretrained("FINAL-Bench/VKORE-325M-NPU-Base")
|
| 8 |
+
gpu = AutoModelForCausalLM.from_pretrained("FINAL-Bench/VKORE-325M-NPU-Base", subfolder="b200_reference")
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
| Item | Value |
|
| 12 |
+
|---|---|
|
| 13 |
+
| Hardware | B200 GPU |
|
| 14 |
+
| Steps | 76,293 |
|
| 15 |
+
| Training tokens | 5.0B (FineWeb-Edu, byte level) |
|
| 16 |
+
| Format | same LlamaForCausalLM config as the NPU model |
|
b200_reference/config.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
| 1 |
-
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"LlamaForCausalLM"
|
| 4 |
-
],
|
| 5 |
-
"attention_bias": false,
|
| 6 |
-
"attention_dropout": 0.0,
|
| 7 |
-
"bos_token_id": null,
|
| 8 |
-
"dtype": "float32",
|
| 9 |
-
"eos_token_id": null,
|
| 10 |
-
"head_dim": 256,
|
| 11 |
-
"hidden_act": "silu",
|
| 12 |
-
"hidden_size": 1024,
|
| 13 |
-
"initializer_range": 0.02,
|
| 14 |
-
"intermediate_size": 3584,
|
| 15 |
-
"max_position_embeddings": 256,
|
| 16 |
-
"mlp_bias": false,
|
| 17 |
-
"model_type": "llama",
|
| 18 |
-
"num_attention_heads": 8,
|
| 19 |
-
"num_hidden_layers": 20,
|
| 20 |
-
"num_key_value_heads": 2,
|
| 21 |
-
"pad_token_id": null,
|
| 22 |
-
"pretraining_tp": 1,
|
| 23 |
-
"rms_norm_eps": 1e-05,
|
| 24 |
-
"rope_parameters": {
|
| 25 |
-
"rope_theta": 100000.0,
|
| 26 |
-
"rope_type": "default"
|
| 27 |
-
},
|
| 28 |
-
"tie_word_embeddings": false,
|
| 29 |
-
"transformers_version": "5.
|
| 30 |
-
"use_cache": true,
|
| 31 |
-
"vocab_size": 256
|
| 32 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"LlamaForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"eos_token_id": null,
|
| 10 |
+
"head_dim": 256,
|
| 11 |
+
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 1024,
|
| 13 |
+
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 3584,
|
| 15 |
+
"max_position_embeddings": 256,
|
| 16 |
+
"mlp_bias": false,
|
| 17 |
+
"model_type": "llama",
|
| 18 |
+
"num_attention_heads": 8,
|
| 19 |
+
"num_hidden_layers": 20,
|
| 20 |
+
"num_key_value_heads": 2,
|
| 21 |
+
"pad_token_id": null,
|
| 22 |
+
"pretraining_tp": 1,
|
| 23 |
+
"rms_norm_eps": 1e-05,
|
| 24 |
+
"rope_parameters": {
|
| 25 |
+
"rope_theta": 100000.0,
|
| 26 |
+
"rope_type": "default"
|
| 27 |
+
},
|
| 28 |
+
"tie_word_embeddings": false,
|
| 29 |
+
"transformers_version": "5.5.4",
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 256
|
| 32 |
+
}
|
b200_reference/generation_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
-
"output_attentions": false,
|
| 4 |
-
"output_hidden_states": false,
|
| 5 |
-
"transformers_version": "5.
|
| 6 |
-
"use_cache": true
|
| 7 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"output_attentions": false,
|
| 4 |
+
"output_hidden_states": false,
|
| 5 |
+
"transformers_version": "5.5.4",
|
| 6 |
+
"use_cache": true
|
| 7 |
+
}
|