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 40000, 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:7b7729248601047f8e38f3850e7e18cf7889b4308d9f9580a679de009332f3da
|
| 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:358495fc0c32209eebada050e3f21202035c40fdaedcd448ad4300b16ac6f351
|
| 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:88b68a8a714da2056a995b3e2624d11f9159cf571839f94eec4ca36bd56bea1f
|
| 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:adaad33497c37859c99058576b7822dd684fa1b3784f6f798b4f9dc171601aff
|
| 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,
|
|
@@ -6950,11 +6950,189 @@
|
|
| 6950 |
"eval_steps_per_second": 24.192,
|
| 6951 |
"num_input_tokens_seen": 10223611456,
|
| 6952 |
"step": 39000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6953 |
}
|
| 6954 |
],
|
| 6955 |
"logging_steps": 50,
|
| 6956 |
"max_steps": 70000,
|
| 6957 |
-
"num_input_tokens_seen":
|
| 6958 |
"num_train_epochs": 1,
|
| 6959 |
"save_steps": 1000,
|
| 6960 |
"stateful_callbacks": {
|
|
@@ -6969,7 +7147,7 @@
|
|
| 6969 |
"attributes": {}
|
| 6970 |
}
|
| 6971 |
},
|
| 6972 |
-
"total_flos": 2.
|
| 6973 |
"train_batch_size": 64,
|
| 6974 |
"trial_name": null,
|
| 6975 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.19080100647530915,
|
| 6 |
"eval_steps": 500,
|
| 7 |
+
"global_step": 40000,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 6950 |
"eval_steps_per_second": 24.192,
|
| 6951 |
"num_input_tokens_seen": 10223611456,
|
| 6952 |
"step": 39000
|
| 6953 |
+
},
|
| 6954 |
+
{
|
| 6955 |
+
"epoch": 0.18626948257152057,
|
| 6956 |
+
"grad_norm": 0.19634057581424713,
|
| 6957 |
+
"learning_rate": 0.001,
|
| 6958 |
+
"loss": 2.6342,
|
| 6959 |
+
"num_input_tokens_seen": 10236718656,
|
| 6960 |
+
"step": 39050
|
| 6961 |
+
},
|
| 6962 |
+
{
|
| 6963 |
+
"epoch": 0.1865079838296147,
|
| 6964 |
+
"grad_norm": 0.19488537311553955,
|
| 6965 |
+
"learning_rate": 0.001,
|
| 6966 |
+
"loss": 2.6305,
|
| 6967 |
+
"num_input_tokens_seen": 10249825856,
|
| 6968 |
+
"step": 39100
|
| 6969 |
+
},
|
| 6970 |
+
{
|
| 6971 |
+
"epoch": 0.18674648508770883,
|
| 6972 |
+
"grad_norm": 0.2082369476556778,
|
| 6973 |
+
"learning_rate": 0.001,
|
| 6974 |
+
"loss": 2.6067,
|
| 6975 |
+
"num_input_tokens_seen": 10262933056,
|
| 6976 |
+
"step": 39150
|
| 6977 |
+
},
|
| 6978 |
+
{
|
| 6979 |
+
"epoch": 0.18698498634580296,
|
| 6980 |
+
"grad_norm": 0.21019776165485382,
|
| 6981 |
+
"learning_rate": 0.001,
|
| 6982 |
+
"loss": 2.628,
|
| 6983 |
+
"num_input_tokens_seen": 10276040256,
|
| 6984 |
+
"step": 39200
|
| 6985 |
+
},
|
| 6986 |
+
{
|
| 6987 |
+
"epoch": 0.18722348760389712,
|
| 6988 |
+
"grad_norm": 0.19929739832878113,
|
| 6989 |
+
"learning_rate": 0.001,
|
| 6990 |
+
"loss": 2.6256,
|
| 6991 |
+
"num_input_tokens_seen": 10289147456,
|
| 6992 |
+
"step": 39250
|
| 6993 |
+
},
|
| 6994 |
+
{
|
| 6995 |
+
"epoch": 0.18746198886199125,
|
| 6996 |
+
"grad_norm": 0.204230397939682,
|
| 6997 |
+
"learning_rate": 0.001,
|
| 6998 |
+
"loss": 2.6113,
|
| 6999 |
+
"num_input_tokens_seen": 10302254656,
|
| 7000 |
+
"step": 39300
|
| 7001 |
+
},
|
| 7002 |
+
{
|
| 7003 |
+
"epoch": 0.18770049012008538,
|
| 7004 |
+
"grad_norm": 0.2217213660478592,
|
| 7005 |
+
"learning_rate": 0.001,
|
| 7006 |
+
"loss": 2.6253,
|
| 7007 |
+
"num_input_tokens_seen": 10315361856,
|
| 7008 |
+
"step": 39350
|
| 7009 |
+
},
|
| 7010 |
+
{
|
| 7011 |
+
"epoch": 0.18793899137817952,
|
| 7012 |
+
"grad_norm": 0.19329366087913513,
|
| 7013 |
+
"learning_rate": 0.001,
|
| 7014 |
+
"loss": 2.6317,
|
| 7015 |
+
"num_input_tokens_seen": 10328469056,
|
| 7016 |
+
"step": 39400
|
| 7017 |
+
},
|
| 7018 |
+
{
|
| 7019 |
+
"epoch": 0.18817749263627365,
|
| 7020 |
+
"grad_norm": 0.18244336545467377,
|
| 7021 |
+
"learning_rate": 0.001,
|
| 7022 |
+
"loss": 2.6476,
|
| 7023 |
+
"num_input_tokens_seen": 10341576256,
|
| 7024 |
+
"step": 39450
|
| 7025 |
+
},
|
| 7026 |
+
{
|
| 7027 |
+
"epoch": 0.1884159938943678,
|
| 7028 |
+
"grad_norm": 0.1864692121744156,
|
| 7029 |
+
"learning_rate": 0.001,
|
| 7030 |
+
"loss": 2.642,
|
| 7031 |
+
"num_input_tokens_seen": 10354683456,
|
| 7032 |
+
"step": 39500
|
| 7033 |
+
},
|
| 7034 |
+
{
|
| 7035 |
+
"epoch": 0.1884159938943678,
|
| 7036 |
+
"eval_loss": 2.514141321182251,
|
| 7037 |
+
"eval_runtime": 51.1111,
|
| 7038 |
+
"eval_samples_per_second": 97.826,
|
| 7039 |
+
"eval_steps_per_second": 24.457,
|
| 7040 |
+
"num_input_tokens_seen": 10354683456,
|
| 7041 |
+
"step": 39500
|
| 7042 |
+
},
|
| 7043 |
+
{
|
| 7044 |
+
"epoch": 0.18865449515246194,
|
| 7045 |
+
"grad_norm": 0.25003623962402344,
|
| 7046 |
+
"learning_rate": 0.001,
|
| 7047 |
+
"loss": 2.6299,
|
| 7048 |
+
"num_input_tokens_seen": 10367790656,
|
| 7049 |
+
"step": 39550
|
| 7050 |
+
},
|
| 7051 |
+
{
|
| 7052 |
+
"epoch": 0.18889299641055607,
|
| 7053 |
+
"grad_norm": 0.19642098248004913,
|
| 7054 |
+
"learning_rate": 0.001,
|
| 7055 |
+
"loss": 2.6412,
|
| 7056 |
+
"num_input_tokens_seen": 10380897856,
|
| 7057 |
+
"step": 39600
|
| 7058 |
+
},
|
| 7059 |
+
{
|
| 7060 |
+
"epoch": 0.1891314976686502,
|
| 7061 |
+
"grad_norm": 0.21947956085205078,
|
| 7062 |
+
"learning_rate": 0.001,
|
| 7063 |
+
"loss": 2.6211,
|
| 7064 |
+
"num_input_tokens_seen": 10394005056,
|
| 7065 |
+
"step": 39650
|
| 7066 |
+
},
|
| 7067 |
+
{
|
| 7068 |
+
"epoch": 0.18936999892674433,
|
| 7069 |
+
"grad_norm": 0.19838476181030273,
|
| 7070 |
+
"learning_rate": 0.001,
|
| 7071 |
+
"loss": 2.6451,
|
| 7072 |
+
"num_input_tokens_seen": 10407112256,
|
| 7073 |
+
"step": 39700
|
| 7074 |
+
},
|
| 7075 |
+
{
|
| 7076 |
+
"epoch": 0.18960850018483846,
|
| 7077 |
+
"grad_norm": 0.21131113171577454,
|
| 7078 |
+
"learning_rate": 0.001,
|
| 7079 |
+
"loss": 2.6375,
|
| 7080 |
+
"num_input_tokens_seen": 10420219456,
|
| 7081 |
+
"step": 39750
|
| 7082 |
+
},
|
| 7083 |
+
{
|
| 7084 |
+
"epoch": 0.18984700144293262,
|
| 7085 |
+
"grad_norm": 0.17576864361763,
|
| 7086 |
+
"learning_rate": 0.001,
|
| 7087 |
+
"loss": 2.6325,
|
| 7088 |
+
"num_input_tokens_seen": 10433326656,
|
| 7089 |
+
"step": 39800
|
| 7090 |
+
},
|
| 7091 |
+
{
|
| 7092 |
+
"epoch": 0.19008550270102675,
|
| 7093 |
+
"grad_norm": 0.2113037258386612,
|
| 7094 |
+
"learning_rate": 0.001,
|
| 7095 |
+
"loss": 2.6254,
|
| 7096 |
+
"num_input_tokens_seen": 10446433856,
|
| 7097 |
+
"step": 39850
|
| 7098 |
+
},
|
| 7099 |
+
{
|
| 7100 |
+
"epoch": 0.19032400395912089,
|
| 7101 |
+
"grad_norm": 0.1972583681344986,
|
| 7102 |
+
"learning_rate": 0.001,
|
| 7103 |
+
"loss": 2.6277,
|
| 7104 |
+
"num_input_tokens_seen": 10459541056,
|
| 7105 |
+
"step": 39900
|
| 7106 |
+
},
|
| 7107 |
+
{
|
| 7108 |
+
"epoch": 0.19056250521721502,
|
| 7109 |
+
"grad_norm": 0.43353378772735596,
|
| 7110 |
+
"learning_rate": 0.001,
|
| 7111 |
+
"loss": 2.6295,
|
| 7112 |
+
"num_input_tokens_seen": 10472648256,
|
| 7113 |
+
"step": 39950
|
| 7114 |
+
},
|
| 7115 |
+
{
|
| 7116 |
+
"epoch": 0.19080100647530915,
|
| 7117 |
+
"grad_norm": 0.22195081412792206,
|
| 7118 |
+
"learning_rate": 0.001,
|
| 7119 |
+
"loss": 2.6422,
|
| 7120 |
+
"num_input_tokens_seen": 10485755456,
|
| 7121 |
+
"step": 40000
|
| 7122 |
+
},
|
| 7123 |
+
{
|
| 7124 |
+
"epoch": 0.19080100647530915,
|
| 7125 |
+
"eval_loss": 2.5144667625427246,
|
| 7126 |
+
"eval_runtime": 51.0006,
|
| 7127 |
+
"eval_samples_per_second": 98.038,
|
| 7128 |
+
"eval_steps_per_second": 24.51,
|
| 7129 |
+
"num_input_tokens_seen": 10485755456,
|
| 7130 |
+
"step": 40000
|
| 7131 |
}
|
| 7132 |
],
|
| 7133 |
"logging_steps": 50,
|
| 7134 |
"max_steps": 70000,
|
| 7135 |
+
"num_input_tokens_seen": 10485755456,
|
| 7136 |
"num_train_epochs": 1,
|
| 7137 |
"save_steps": 1000,
|
| 7138 |
"stateful_callbacks": {
|
|
|
|
| 7147 |
"attributes": {}
|
| 7148 |
}
|
| 7149 |
},
|
| 7150 |
+
"total_flos": 2.8050419254532506e+18,
|
| 7151 |
"train_batch_size": 64,
|
| 7152 |
"trial_name": null,
|
| 7153 |
"trial_params": null
|