Text Generation
Transformers
Safetensors
English
modern_llm
custom-architecture
rope
gqa
swiglu
rmsnorm
custom_code
Instructions to use devoppro/FastLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use devoppro/FastLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="devoppro/FastLLM", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("devoppro/FastLLM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use devoppro/FastLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "devoppro/FastLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "devoppro/FastLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/devoppro/FastLLM
- SGLang
How to use devoppro/FastLLM 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 "devoppro/FastLLM" \ --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": "devoppro/FastLLM", "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 "devoppro/FastLLM" \ --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": "devoppro/FastLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use devoppro/FastLLM with Docker Model Runner:
docker model run hf.co/devoppro/FastLLM
Training in progress, step 700
Browse files
last-checkpoint/config.json
CHANGED
|
@@ -2,13 +2,9 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"ModernLLMForCausalLM"
|
| 4 |
],
|
| 5 |
-
"
|
| 6 |
-
"AutoConfig": "configuration_modern_llm.ModernLLMConfig",
|
| 7 |
-
"AutoModelForCausalLM": "modeling_modern_llm.ModernLLMForCausalLM"
|
| 8 |
-
},
|
| 9 |
-
"bos_token_id": 151643,
|
| 10 |
"dtype": "float32",
|
| 11 |
-
"eos_token_id":
|
| 12 |
"hidden_size": 768,
|
| 13 |
"intermediate_size": 2048,
|
| 14 |
"max_position_embeddings": 2048,
|
|
@@ -16,7 +12,7 @@
|
|
| 16 |
"num_attention_heads": 12,
|
| 17 |
"num_hidden_layers": 12,
|
| 18 |
"num_key_value_heads": 4,
|
| 19 |
-
"pad_token_id":
|
| 20 |
"rms_norm_eps": 1e-06,
|
| 21 |
"rope_theta": 1000000.0,
|
| 22 |
"transformers_version": "5.15.1",
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"ModernLLMForCausalLM"
|
| 4 |
],
|
| 5 |
+
"bos_token_id": 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"dtype": "float32",
|
| 7 |
+
"eos_token_id": 2,
|
| 8 |
"hidden_size": 768,
|
| 9 |
"intermediate_size": 2048,
|
| 10 |
"max_position_embeddings": 2048,
|
|
|
|
| 12 |
"num_attention_heads": 12,
|
| 13 |
"num_hidden_layers": 12,
|
| 14 |
"num_key_value_heads": 4,
|
| 15 |
+
"pad_token_id": 0,
|
| 16 |
"rms_norm_eps": 1e-06,
|
| 17 |
"rope_theta": 1000000.0,
|
| 18 |
"transformers_version": "5.15.1",
|
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1235573136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:224bbc547320cbc7a57a274bef9f525f2e4be737031df14b601959f9380cb929
|
| 3 |
size 1235573136
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2471218763
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f014f1f8cf2eb9a4ff44ad059ad7d7ab8356457d91805882d791c32ab849f992
|
| 3 |
size 2471218763
|
last-checkpoint/scaler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1383
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68b03f74e10591ff22477365642275703166a34b306471da2a9df3e87497356f
|
| 3 |
size 1383
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0471ce3745a36e49a3e0d19eac020ddc42dff8b92447d06fa38e6a682e228b19
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 0.
|
| 6 |
"eval_steps": 500,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -358,76 +358,6 @@
|
|
| 358 |
"learning_rate": 0.0002976012024048096,
|
| 359 |
"loss": 78.9918212890625,
|
| 360 |
"step": 500
|
| 361 |
-
},
|
| 362 |
-
{
|
| 363 |
-
"epoch": 0.0102,
|
| 364 |
-
"grad_norm": 15.467362403869629,
|
| 365 |
-
"learning_rate": 0.00029754108216432863,
|
| 366 |
-
"loss": 124.401513671875,
|
| 367 |
-
"step": 510
|
| 368 |
-
},
|
| 369 |
-
{
|
| 370 |
-
"epoch": 0.0104,
|
| 371 |
-
"grad_norm": 13.991318702697754,
|
| 372 |
-
"learning_rate": 0.0002974809619238477,
|
| 373 |
-
"loss": 110.567431640625,
|
| 374 |
-
"step": 520
|
| 375 |
-
},
|
| 376 |
-
{
|
| 377 |
-
"epoch": 0.0106,
|
| 378 |
-
"grad_norm": 17.036069869995117,
|
| 379 |
-
"learning_rate": 0.0002974208416833667,
|
| 380 |
-
"loss": 104.7319580078125,
|
| 381 |
-
"step": 530
|
| 382 |
-
},
|
| 383 |
-
{
|
| 384 |
-
"epoch": 0.0108,
|
| 385 |
-
"grad_norm": 13.922304153442383,
|
| 386 |
-
"learning_rate": 0.0002973607214428857,
|
| 387 |
-
"loss": 100.63988647460937,
|
| 388 |
-
"step": 540
|
| 389 |
-
},
|
| 390 |
-
{
|
| 391 |
-
"epoch": 0.011,
|
| 392 |
-
"grad_norm": 13.223531723022461,
|
| 393 |
-
"learning_rate": 0.0002973006012024048,
|
| 394 |
-
"loss": 99.96443481445313,
|
| 395 |
-
"step": 550
|
| 396 |
-
},
|
| 397 |
-
{
|
| 398 |
-
"epoch": 0.0112,
|
| 399 |
-
"grad_norm": 14.53707504272461,
|
| 400 |
-
"learning_rate": 0.0002972404809619238,
|
| 401 |
-
"loss": 95.74251098632813,
|
| 402 |
-
"step": 560
|
| 403 |
-
},
|
| 404 |
-
{
|
| 405 |
-
"epoch": 0.0114,
|
| 406 |
-
"grad_norm": 14.91770076751709,
|
| 407 |
-
"learning_rate": 0.00029718036072144287,
|
| 408 |
-
"loss": 94.661767578125,
|
| 409 |
-
"step": 570
|
| 410 |
-
},
|
| 411 |
-
{
|
| 412 |
-
"epoch": 0.0116,
|
| 413 |
-
"grad_norm": 13.45614242553711,
|
| 414 |
-
"learning_rate": 0.0002971202404809619,
|
| 415 |
-
"loss": 90.941796875,
|
| 416 |
-
"step": 580
|
| 417 |
-
},
|
| 418 |
-
{
|
| 419 |
-
"epoch": 0.0118,
|
| 420 |
-
"grad_norm": 13.695131301879883,
|
| 421 |
-
"learning_rate": 0.00029706012024048096,
|
| 422 |
-
"loss": 92.9096923828125,
|
| 423 |
-
"step": 590
|
| 424 |
-
},
|
| 425 |
-
{
|
| 426 |
-
"epoch": 0.012,
|
| 427 |
-
"grad_norm": 16.406902313232422,
|
| 428 |
-
"learning_rate": 0.00029699999999999996,
|
| 429 |
-
"loss": 90.14566650390626,
|
| 430 |
-
"step": 600
|
| 431 |
}
|
| 432 |
],
|
| 433 |
"logging_steps": 10,
|
|
@@ -447,7 +377,7 @@
|
|
| 447 |
"attributes": {}
|
| 448 |
}
|
| 449 |
},
|
| 450 |
-
"total_flos":
|
| 451 |
"train_batch_size": 2,
|
| 452 |
"trial_name": null,
|
| 453 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.01,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 500,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 358 |
"learning_rate": 0.0002976012024048096,
|
| 359 |
"loss": 78.9918212890625,
|
| 360 |
"step": 500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 361 |
}
|
| 362 |
],
|
| 363 |
"logging_steps": 10,
|
|
|
|
| 377 |
"attributes": {}
|
| 378 |
}
|
| 379 |
},
|
| 380 |
+
"total_flos": 8161860202859520.0,
|
| 381 |
"train_batch_size": 2,
|
| 382 |
"trial_name": null,
|
| 383 |
"trial_params": null
|
last-checkpoint/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5201
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3ead25e90961f39a7cf235a53c52302322d446327bb423dad890f04c47276211
|
| 3 |
size 5201
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1235573136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58886de0a0264c68415f0973d23f1c25b70abbb55d1ed2f9efc5c3bf293fcdc2
|
| 3 |
size 1235573136
|