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 33000, 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:e09d13e4122e8385a0b0d20fd5c3e0ad48906dae0b62b89359b90d5025d71342
|
| 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:b5a1cf3d4f7ef91e1710cd1ff627ffe86cbcad4b359e09cfc0653ed1c67113f3
|
| 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:e9d470001272ba85c23801cee9a0e9047fab9ee4730b52f1c2aa2f87689e581d
|
| 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:281c918d3dcf25df4f5a9bbf64a4fd88f0fa5c69087d3374f9f2ce6266f988a9
|
| 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,
|
|
@@ -5704,11 +5704,189 @@
|
|
| 5704 |
"eval_steps_per_second": 24.503,
|
| 5705 |
"num_input_tokens_seen": 8388608000,
|
| 5706 |
"step": 32000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5707 |
}
|
| 5708 |
],
|
| 5709 |
"logging_steps": 50,
|
| 5710 |
"max_steps": 70000,
|
| 5711 |
-
"num_input_tokens_seen":
|
| 5712 |
"num_train_epochs": 1,
|
| 5713 |
"save_steps": 1000,
|
| 5714 |
"stateful_callbacks": {
|
|
@@ -5723,7 +5901,7 @@
|
|
| 5723 |
"attributes": {}
|
| 5724 |
}
|
| 5725 |
},
|
| 5726 |
-
"total_flos": 2.
|
| 5727 |
"train_batch_size": 64,
|
| 5728 |
"trial_name": null,
|
| 5729 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.15741083034213005,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 33000,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 5704 |
"eval_steps_per_second": 24.503,
|
| 5705 |
"num_input_tokens_seen": 8388608000,
|
| 5706 |
"step": 32000
|
| 5707 |
+
},
|
| 5708 |
+
{
|
| 5709 |
+
"epoch": 0.15287930643834147,
|
| 5710 |
+
"grad_norm": 0.180119588971138,
|
| 5711 |
+
"learning_rate": 0.001,
|
| 5712 |
+
"loss": 2.6558,
|
| 5713 |
+
"num_input_tokens_seen": 8401715200,
|
| 5714 |
+
"step": 32050
|
| 5715 |
+
},
|
| 5716 |
+
{
|
| 5717 |
+
"epoch": 0.1531178076964356,
|
| 5718 |
+
"grad_norm": 0.1952589452266693,
|
| 5719 |
+
"learning_rate": 0.001,
|
| 5720 |
+
"loss": 2.6465,
|
| 5721 |
+
"num_input_tokens_seen": 8414822400,
|
| 5722 |
+
"step": 32100
|
| 5723 |
+
},
|
| 5724 |
+
{
|
| 5725 |
+
"epoch": 0.15335630895452973,
|
| 5726 |
+
"grad_norm": 0.1845589131116867,
|
| 5727 |
+
"learning_rate": 0.001,
|
| 5728 |
+
"loss": 2.6297,
|
| 5729 |
+
"num_input_tokens_seen": 8427929600,
|
| 5730 |
+
"step": 32150
|
| 5731 |
+
},
|
| 5732 |
+
{
|
| 5733 |
+
"epoch": 0.15359481021262386,
|
| 5734 |
+
"grad_norm": 0.20116594433784485,
|
| 5735 |
+
"learning_rate": 0.001,
|
| 5736 |
+
"loss": 2.6422,
|
| 5737 |
+
"num_input_tokens_seen": 8441036800,
|
| 5738 |
+
"step": 32200
|
| 5739 |
+
},
|
| 5740 |
+
{
|
| 5741 |
+
"epoch": 0.15383331147071802,
|
| 5742 |
+
"grad_norm": 0.1932612508535385,
|
| 5743 |
+
"learning_rate": 0.001,
|
| 5744 |
+
"loss": 2.6494,
|
| 5745 |
+
"num_input_tokens_seen": 8454144000,
|
| 5746 |
+
"step": 32250
|
| 5747 |
+
},
|
| 5748 |
+
{
|
| 5749 |
+
"epoch": 0.15407181272881215,
|
| 5750 |
+
"grad_norm": 0.17934490740299225,
|
| 5751 |
+
"learning_rate": 0.001,
|
| 5752 |
+
"loss": 2.6474,
|
| 5753 |
+
"num_input_tokens_seen": 8467251200,
|
| 5754 |
+
"step": 32300
|
| 5755 |
+
},
|
| 5756 |
+
{
|
| 5757 |
+
"epoch": 0.15431031398690628,
|
| 5758 |
+
"grad_norm": 0.19273313879966736,
|
| 5759 |
+
"learning_rate": 0.001,
|
| 5760 |
+
"loss": 2.6447,
|
| 5761 |
+
"num_input_tokens_seen": 8480358400,
|
| 5762 |
+
"step": 32350
|
| 5763 |
+
},
|
| 5764 |
+
{
|
| 5765 |
+
"epoch": 0.15454881524500041,
|
| 5766 |
+
"grad_norm": 0.1921055018901825,
|
| 5767 |
+
"learning_rate": 0.001,
|
| 5768 |
+
"loss": 2.665,
|
| 5769 |
+
"num_input_tokens_seen": 8493465600,
|
| 5770 |
+
"step": 32400
|
| 5771 |
+
},
|
| 5772 |
+
{
|
| 5773 |
+
"epoch": 0.15478731650309455,
|
| 5774 |
+
"grad_norm": 0.37117844820022583,
|
| 5775 |
+
"learning_rate": 0.001,
|
| 5776 |
+
"loss": 2.6351,
|
| 5777 |
+
"num_input_tokens_seen": 8506572800,
|
| 5778 |
+
"step": 32450
|
| 5779 |
+
},
|
| 5780 |
+
{
|
| 5781 |
+
"epoch": 0.15502581776118868,
|
| 5782 |
+
"grad_norm": 0.1884016990661621,
|
| 5783 |
+
"learning_rate": 0.001,
|
| 5784 |
+
"loss": 2.6436,
|
| 5785 |
+
"num_input_tokens_seen": 8519680000,
|
| 5786 |
+
"step": 32500
|
| 5787 |
+
},
|
| 5788 |
+
{
|
| 5789 |
+
"epoch": 0.15502581776118868,
|
| 5790 |
+
"eval_loss": 2.5313448905944824,
|
| 5791 |
+
"eval_runtime": 50.7051,
|
| 5792 |
+
"eval_samples_per_second": 98.609,
|
| 5793 |
+
"eval_steps_per_second": 24.652,
|
| 5794 |
+
"num_input_tokens_seen": 8519680000,
|
| 5795 |
+
"step": 32500
|
| 5796 |
+
},
|
| 5797 |
+
{
|
| 5798 |
+
"epoch": 0.15526431901928284,
|
| 5799 |
+
"grad_norm": 0.22205407917499542,
|
| 5800 |
+
"learning_rate": 0.001,
|
| 5801 |
+
"loss": 2.6464,
|
| 5802 |
+
"num_input_tokens_seen": 8532787200,
|
| 5803 |
+
"step": 32550
|
| 5804 |
+
},
|
| 5805 |
+
{
|
| 5806 |
+
"epoch": 0.15550282027737697,
|
| 5807 |
+
"grad_norm": 0.18515361845493317,
|
| 5808 |
+
"learning_rate": 0.001,
|
| 5809 |
+
"loss": 2.642,
|
| 5810 |
+
"num_input_tokens_seen": 8545894400,
|
| 5811 |
+
"step": 32600
|
| 5812 |
+
},
|
| 5813 |
+
{
|
| 5814 |
+
"epoch": 0.1557413215354711,
|
| 5815 |
+
"grad_norm": 0.18903231620788574,
|
| 5816 |
+
"learning_rate": 0.001,
|
| 5817 |
+
"loss": 2.6446,
|
| 5818 |
+
"num_input_tokens_seen": 8559001600,
|
| 5819 |
+
"step": 32650
|
| 5820 |
+
},
|
| 5821 |
+
{
|
| 5822 |
+
"epoch": 0.15597982279356523,
|
| 5823 |
+
"grad_norm": 0.1857556253671646,
|
| 5824 |
+
"learning_rate": 0.001,
|
| 5825 |
+
"loss": 2.6561,
|
| 5826 |
+
"num_input_tokens_seen": 8572108800,
|
| 5827 |
+
"step": 32700
|
| 5828 |
+
},
|
| 5829 |
+
{
|
| 5830 |
+
"epoch": 0.15621832405165936,
|
| 5831 |
+
"grad_norm": 0.45706707239151,
|
| 5832 |
+
"learning_rate": 0.001,
|
| 5833 |
+
"loss": 2.6487,
|
| 5834 |
+
"num_input_tokens_seen": 8585216000,
|
| 5835 |
+
"step": 32750
|
| 5836 |
+
},
|
| 5837 |
+
{
|
| 5838 |
+
"epoch": 0.15645682530975352,
|
| 5839 |
+
"grad_norm": 0.20191136002540588,
|
| 5840 |
+
"learning_rate": 0.001,
|
| 5841 |
+
"loss": 2.6593,
|
| 5842 |
+
"num_input_tokens_seen": 8598323200,
|
| 5843 |
+
"step": 32800
|
| 5844 |
+
},
|
| 5845 |
+
{
|
| 5846 |
+
"epoch": 0.15669532656784765,
|
| 5847 |
+
"grad_norm": 0.21191105246543884,
|
| 5848 |
+
"learning_rate": 0.001,
|
| 5849 |
+
"loss": 2.659,
|
| 5850 |
+
"num_input_tokens_seen": 8611430400,
|
| 5851 |
+
"step": 32850
|
| 5852 |
+
},
|
| 5853 |
+
{
|
| 5854 |
+
"epoch": 0.15693382782594179,
|
| 5855 |
+
"grad_norm": 0.20596672594547272,
|
| 5856 |
+
"learning_rate": 0.001,
|
| 5857 |
+
"loss": 2.6354,
|
| 5858 |
+
"num_input_tokens_seen": 8624537600,
|
| 5859 |
+
"step": 32900
|
| 5860 |
+
},
|
| 5861 |
+
{
|
| 5862 |
+
"epoch": 0.15717232908403592,
|
| 5863 |
+
"grad_norm": 0.2952199876308441,
|
| 5864 |
+
"learning_rate": 0.001,
|
| 5865 |
+
"loss": 2.6501,
|
| 5866 |
+
"num_input_tokens_seen": 8637644800,
|
| 5867 |
+
"step": 32950
|
| 5868 |
+
},
|
| 5869 |
+
{
|
| 5870 |
+
"epoch": 0.15741083034213005,
|
| 5871 |
+
"grad_norm": 0.2217044234275818,
|
| 5872 |
+
"learning_rate": 0.001,
|
| 5873 |
+
"loss": 2.6495,
|
| 5874 |
+
"num_input_tokens_seen": 8650752000,
|
| 5875 |
+
"step": 33000
|
| 5876 |
+
},
|
| 5877 |
+
{
|
| 5878 |
+
"epoch": 0.15741083034213005,
|
| 5879 |
+
"eval_loss": 2.5319430828094482,
|
| 5880 |
+
"eval_runtime": 50.8413,
|
| 5881 |
+
"eval_samples_per_second": 98.345,
|
| 5882 |
+
"eval_steps_per_second": 24.586,
|
| 5883 |
+
"num_input_tokens_seen": 8650752000,
|
| 5884 |
+
"step": 33000
|
| 5885 |
}
|
| 5886 |
],
|
| 5887 |
"logging_steps": 50,
|
| 5888 |
"max_steps": 70000,
|
| 5889 |
+
"num_input_tokens_seen": 8650752000,
|
| 5890 |
"num_train_epochs": 1,
|
| 5891 |
"save_steps": 1000,
|
| 5892 |
"stateful_callbacks": {
|
|
|
|
| 5901 |
"attributes": {}
|
| 5902 |
}
|
| 5903 |
},
|
| 5904 |
+
"total_flos": 2.31416059133952e+18,
|
| 5905 |
"train_batch_size": 64,
|
| 5906 |
"trial_name": null,
|
| 5907 |
"trial_params": null
|