Text Generation
Transformers
Safetensors
English
smallm
transformer
language-model
experimental
conversational
custom_code
Instructions to use Azrail/smallm_70 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azrail/smallm_70 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Azrail/smallm_70", 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("Azrail/smallm_70", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Azrail/smallm_70 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Azrail/smallm_70" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Azrail/smallm_70", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Azrail/smallm_70
- SGLang
How to use Azrail/smallm_70 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 "Azrail/smallm_70" \ --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": "Azrail/smallm_70", "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 "Azrail/smallm_70" \ --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": "Azrail/smallm_70", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Azrail/smallm_70 with Docker Model Runner:
docker model run hf.co/Azrail/smallm_70
Training in progress, step 21000, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 301235464
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76962f31b592fa8deacccb979f42e9210c0c2e3bf0764d57dee6473a4df753a6
|
| 3 |
size 301235464
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 602335994
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:425d92660fd73540ddd53e4612e3b0f78452740315b4f16696c04af26bbcfffa
|
| 3 |
size 602335994
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6be325dc8d081573ecb7d82e811226f573dbeee4a5f3df2685ea5ac22d875758
|
| 3 |
size 14244
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b368897bc9733fded7264e8f195c047c51921c4d323bbc9cd4cc617a19adfef
|
| 3 |
size 1064
|
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,
|
|
@@ -3568,11 +3568,189 @@
|
|
| 3568 |
"eval_steps_per_second": 24.709,
|
| 3569 |
"num_input_tokens_seen": 5242880000,
|
| 3570 |
"step": 20000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3571 |
}
|
| 3572 |
],
|
| 3573 |
"logging_steps": 50,
|
| 3574 |
"max_steps": 70000,
|
| 3575 |
-
"num_input_tokens_seen":
|
| 3576 |
"num_train_epochs": 1,
|
| 3577 |
"save_steps": 1000,
|
| 3578 |
"stateful_callbacks": {
|
|
@@ -3587,7 +3765,7 @@
|
|
| 3587 |
"attributes": {}
|
| 3588 |
}
|
| 3589 |
},
|
| 3590 |
-
"total_flos": 1.
|
| 3591 |
"train_batch_size": 64,
|
| 3592 |
"trial_name": null,
|
| 3593 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.1001705283995373,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 21000,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 3568 |
"eval_steps_per_second": 24.709,
|
| 3569 |
"num_input_tokens_seen": 5242880000,
|
| 3570 |
"step": 20000
|
| 3571 |
+
},
|
| 3572 |
+
{
|
| 3573 |
+
"epoch": 0.09563900449574872,
|
| 3574 |
+
"grad_norm": 0.17750214040279388,
|
| 3575 |
+
"learning_rate": 0.001,
|
| 3576 |
+
"loss": 2.7,
|
| 3577 |
+
"num_input_tokens_seen": 5255987200,
|
| 3578 |
+
"step": 20050
|
| 3579 |
+
},
|
| 3580 |
+
{
|
| 3581 |
+
"epoch": 0.09587750575384285,
|
| 3582 |
+
"grad_norm": 0.16490615904331207,
|
| 3583 |
+
"learning_rate": 0.001,
|
| 3584 |
+
"loss": 2.7188,
|
| 3585 |
+
"num_input_tokens_seen": 5269094400,
|
| 3586 |
+
"step": 20100
|
| 3587 |
+
},
|
| 3588 |
+
{
|
| 3589 |
+
"epoch": 0.09611600701193698,
|
| 3590 |
+
"grad_norm": 0.20347309112548828,
|
| 3591 |
+
"learning_rate": 0.001,
|
| 3592 |
+
"loss": 2.7034,
|
| 3593 |
+
"num_input_tokens_seen": 5282201600,
|
| 3594 |
+
"step": 20150
|
| 3595 |
+
},
|
| 3596 |
+
{
|
| 3597 |
+
"epoch": 0.09635450827003113,
|
| 3598 |
+
"grad_norm": 0.19717667996883392,
|
| 3599 |
+
"learning_rate": 0.001,
|
| 3600 |
+
"loss": 2.6864,
|
| 3601 |
+
"num_input_tokens_seen": 5295308800,
|
| 3602 |
+
"step": 20200
|
| 3603 |
+
},
|
| 3604 |
+
{
|
| 3605 |
+
"epoch": 0.09659300952812526,
|
| 3606 |
+
"grad_norm": 0.17054997384548187,
|
| 3607 |
+
"learning_rate": 0.001,
|
| 3608 |
+
"loss": 2.7068,
|
| 3609 |
+
"num_input_tokens_seen": 5308416000,
|
| 3610 |
+
"step": 20250
|
| 3611 |
+
},
|
| 3612 |
+
{
|
| 3613 |
+
"epoch": 0.09683151078621939,
|
| 3614 |
+
"grad_norm": 0.1771887093782425,
|
| 3615 |
+
"learning_rate": 0.001,
|
| 3616 |
+
"loss": 2.7037,
|
| 3617 |
+
"num_input_tokens_seen": 5321523200,
|
| 3618 |
+
"step": 20300
|
| 3619 |
+
},
|
| 3620 |
+
{
|
| 3621 |
+
"epoch": 0.09707001204431354,
|
| 3622 |
+
"grad_norm": 0.17556501924991608,
|
| 3623 |
+
"learning_rate": 0.001,
|
| 3624 |
+
"loss": 2.705,
|
| 3625 |
+
"num_input_tokens_seen": 5334630400,
|
| 3626 |
+
"step": 20350
|
| 3627 |
+
},
|
| 3628 |
+
{
|
| 3629 |
+
"epoch": 0.09730851330240767,
|
| 3630 |
+
"grad_norm": 0.1696256399154663,
|
| 3631 |
+
"learning_rate": 0.001,
|
| 3632 |
+
"loss": 2.7109,
|
| 3633 |
+
"num_input_tokens_seen": 5347737600,
|
| 3634 |
+
"step": 20400
|
| 3635 |
+
},
|
| 3636 |
+
{
|
| 3637 |
+
"epoch": 0.09754701456050181,
|
| 3638 |
+
"grad_norm": 0.18629619479179382,
|
| 3639 |
+
"learning_rate": 0.001,
|
| 3640 |
+
"loss": 2.7043,
|
| 3641 |
+
"num_input_tokens_seen": 5360844800,
|
| 3642 |
+
"step": 20450
|
| 3643 |
+
},
|
| 3644 |
+
{
|
| 3645 |
+
"epoch": 0.09778551581859594,
|
| 3646 |
+
"grad_norm": 0.18701018393039703,
|
| 3647 |
+
"learning_rate": 0.001,
|
| 3648 |
+
"loss": 2.7002,
|
| 3649 |
+
"num_input_tokens_seen": 5373952000,
|
| 3650 |
+
"step": 20500
|
| 3651 |
+
},
|
| 3652 |
+
{
|
| 3653 |
+
"epoch": 0.09778551581859594,
|
| 3654 |
+
"eval_loss": 2.587498903274536,
|
| 3655 |
+
"eval_runtime": 51.1986,
|
| 3656 |
+
"eval_samples_per_second": 97.659,
|
| 3657 |
+
"eval_steps_per_second": 24.415,
|
| 3658 |
+
"num_input_tokens_seen": 5373952000,
|
| 3659 |
+
"step": 20500
|
| 3660 |
+
},
|
| 3661 |
+
{
|
| 3662 |
+
"epoch": 0.09802401707669008,
|
| 3663 |
+
"grad_norm": 0.1792842447757721,
|
| 3664 |
+
"learning_rate": 0.001,
|
| 3665 |
+
"loss": 2.7083,
|
| 3666 |
+
"num_input_tokens_seen": 5387059200,
|
| 3667 |
+
"step": 20550
|
| 3668 |
+
},
|
| 3669 |
+
{
|
| 3670 |
+
"epoch": 0.09826251833478422,
|
| 3671 |
+
"grad_norm": 0.18761058151721954,
|
| 3672 |
+
"learning_rate": 0.001,
|
| 3673 |
+
"loss": 2.6898,
|
| 3674 |
+
"num_input_tokens_seen": 5400166400,
|
| 3675 |
+
"step": 20600
|
| 3676 |
+
},
|
| 3677 |
+
{
|
| 3678 |
+
"epoch": 0.09850101959287835,
|
| 3679 |
+
"grad_norm": 0.1827591508626938,
|
| 3680 |
+
"learning_rate": 0.001,
|
| 3681 |
+
"loss": 2.6976,
|
| 3682 |
+
"num_input_tokens_seen": 5413273600,
|
| 3683 |
+
"step": 20650
|
| 3684 |
+
},
|
| 3685 |
+
{
|
| 3686 |
+
"epoch": 0.09873952085097248,
|
| 3687 |
+
"grad_norm": 0.16178373992443085,
|
| 3688 |
+
"learning_rate": 0.001,
|
| 3689 |
+
"loss": 2.7029,
|
| 3690 |
+
"num_input_tokens_seen": 5426380800,
|
| 3691 |
+
"step": 20700
|
| 3692 |
+
},
|
| 3693 |
+
{
|
| 3694 |
+
"epoch": 0.09897802210906663,
|
| 3695 |
+
"grad_norm": 0.1880313903093338,
|
| 3696 |
+
"learning_rate": 0.001,
|
| 3697 |
+
"loss": 2.6867,
|
| 3698 |
+
"num_input_tokens_seen": 5439488000,
|
| 3699 |
+
"step": 20750
|
| 3700 |
+
},
|
| 3701 |
+
{
|
| 3702 |
+
"epoch": 0.09921652336716076,
|
| 3703 |
+
"grad_norm": 0.17611584067344666,
|
| 3704 |
+
"learning_rate": 0.001,
|
| 3705 |
+
"loss": 2.6741,
|
| 3706 |
+
"num_input_tokens_seen": 5452595200,
|
| 3707 |
+
"step": 20800
|
| 3708 |
+
},
|
| 3709 |
+
{
|
| 3710 |
+
"epoch": 0.09945502462525489,
|
| 3711 |
+
"grad_norm": 0.17712561786174774,
|
| 3712 |
+
"learning_rate": 0.001,
|
| 3713 |
+
"loss": 2.7099,
|
| 3714 |
+
"num_input_tokens_seen": 5465702400,
|
| 3715 |
+
"step": 20850
|
| 3716 |
+
},
|
| 3717 |
+
{
|
| 3718 |
+
"epoch": 0.09969352588334904,
|
| 3719 |
+
"grad_norm": 0.18022434413433075,
|
| 3720 |
+
"learning_rate": 0.001,
|
| 3721 |
+
"loss": 2.6988,
|
| 3722 |
+
"num_input_tokens_seen": 5478809600,
|
| 3723 |
+
"step": 20900
|
| 3724 |
+
},
|
| 3725 |
+
{
|
| 3726 |
+
"epoch": 0.09993202714144317,
|
| 3727 |
+
"grad_norm": 0.17434161901474,
|
| 3728 |
+
"learning_rate": 0.001,
|
| 3729 |
+
"loss": 2.6869,
|
| 3730 |
+
"num_input_tokens_seen": 5491916800,
|
| 3731 |
+
"step": 20950
|
| 3732 |
+
},
|
| 3733 |
+
{
|
| 3734 |
+
"epoch": 0.1001705283995373,
|
| 3735 |
+
"grad_norm": 0.17802472412586212,
|
| 3736 |
+
"learning_rate": 0.001,
|
| 3737 |
+
"loss": 2.6935,
|
| 3738 |
+
"num_input_tokens_seen": 5505024000,
|
| 3739 |
+
"step": 21000
|
| 3740 |
+
},
|
| 3741 |
+
{
|
| 3742 |
+
"epoch": 0.1001705283995373,
|
| 3743 |
+
"eval_loss": 2.5838851928710938,
|
| 3744 |
+
"eval_runtime": 50.1977,
|
| 3745 |
+
"eval_samples_per_second": 99.606,
|
| 3746 |
+
"eval_steps_per_second": 24.902,
|
| 3747 |
+
"num_input_tokens_seen": 5505024000,
|
| 3748 |
+
"step": 21000
|
| 3749 |
}
|
| 3750 |
],
|
| 3751 |
"logging_steps": 50,
|
| 3752 |
"max_steps": 70000,
|
| 3753 |
+
"num_input_tokens_seen": 5505024000,
|
| 3754 |
"num_train_epochs": 1,
|
| 3755 |
"save_steps": 1000,
|
| 3756 |
"stateful_callbacks": {
|
|
|
|
| 3765 |
"attributes": {}
|
| 3766 |
}
|
| 3767 |
},
|
| 3768 |
+
"total_flos": 1.47264764903424e+18,
|
| 3769 |
"train_batch_size": 64,
|
| 3770 |
"trial_name": null,
|
| 3771 |
"trial_params": null
|