Text Generation
Transformers
Safetensors
English
smallm
transformer
language-model
experimental
conversational
custom_code
Run this model with HF Jobs
Run Azrail/smallm_70 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Azrail/smallm_70. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Azrail/smallm_70 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Azrail/smallm_70. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Azrail/smallm_70. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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 64000, checkpoint
Browse filesFiles changed (5)
123version https://git-lfs.github.com/spec/v1oid sha256:a92901e6dc98a2f43e5ab06e2e35886c7f4c68e401e8be0d01acd281cd82349csize 301235464123version https://git-lfs.github.com/spec/v1oid sha256:a4464ecdd36ba9fcbb768fb530bac7125d2ebc3403bceccb2b1857ab10495094size 301235464
123version https://git-lfs.github.com/spec/v1oid sha256:34104db96694bb116cf3048bcf68919612a7c6c79ff646c13c6e8d5a81aff8f6size 602335994123version https://git-lfs.github.com/spec/v1oid sha256:ca3203148d8c928e5e1184f1534f1177f73f6ec7ebdc7acfe3b62c2af0779f9dsize 602335994
123version https://git-lfs.github.com/spec/v1oid sha256:1a97095234a7b82e99cd1b23ba4db26c35942b8b4622876b166d0ce65b7c7110size 14244123version https://git-lfs.github.com/spec/v1oid sha256:7f03ef68c121377c551657263f23acf972b60bf546b00ad9803912e5c78e5ecdsize 14244
123version https://git-lfs.github.com/spec/v1oid sha256:7d1de5c681ac3c8b6bb5235a71c5b6efd72fc9171aa2c9c6e093b8695c8a08b8size 1064123version https://git-lfs.github.com/spec/v1oid sha256:8a5e9561ab6074dc857170aae9d2b27d70afb0686bb61ba701f52af71ad4d4a9size 1064
1 unmodified line234567891011211 unmodified lines11222112231122411225112261122711228112291123011231112328 unmodified lines112411124211243112441124511246112471 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.30051158519861193,"eval_steps": 500,"global_step": 63000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,11211 unmodified lines"eval_steps_per_second": 23.044,"num_input_tokens_seen": 16515067456,"step": 63000}],"logging_steps": 50,"max_steps": 70000,"num_input_tokens_seen": 16515067456,"num_train_epochs": 1,"save_steps": 1000,"stateful_callbacks": {8 unmodified lines"attributes": {}}},"total_flos": 4.4179417315383706e+18,"train_batch_size": 64,"trial_name": null,"trial_params": null1 unmodified line234567891011211 unmodified lines1122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114108 unmodified lines114191142011421114221142311424114251 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.30528161036049467,"eval_steps": 500,"global_step": 64000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,11211 unmodified lines"eval_steps_per_second": 23.044,"num_input_tokens_seen": 16515067456,"step": 63000},{"epoch": 0.30075008645670603,"grad_norm": 0.20152603089809418,"learning_rate": 0.0004943901308226771,"loss": 2.5562,"num_input_tokens_seen": 16528174656,"step": 63050},{"epoch": 0.3009885877148002,"grad_norm": 0.18534454703330994,"learning_rate": 0.0004887809678520976,"loss": 2.5559,"num_input_tokens_seen": 16541281856,"step": 63100},{"epoch": 0.30122708897289435,"grad_norm": 0.18770301342010498,"learning_rate": 0.0004831732172061032,"loss": 2.5538,"num_input_tokens_seen": 16554389056,"step": 63150},{"epoch": 0.30146559023098846,"grad_norm": 0.19565705955028534,"learning_rate": 0.0004775675848247427,"loss": 2.5593,"num_input_tokens_seen": 16567496256,"step": 63200},{"epoch": 0.3017040914890826,"grad_norm": 0.1954822540283203,"learning_rate": 0.00047196477638140405,"loss": 2.5694,"num_input_tokens_seen": 16580603456,"step": 63250},{"epoch": 0.3019425927471767,"grad_norm": 0.18120840191841125,"learning_rate": 0.0004663654971939802,"loss": 2.5622,"num_input_tokens_seen": 16593710656,"step": 63300},{"epoch": 0.3021810940052709,"grad_norm": 0.18100927770137787,"learning_rate": 0.0004607704521360776,"loss": 2.5437,"num_input_tokens_seen": 16606817856,"step": 63350},{"epoch": 0.30241959526336504,"grad_norm": 0.20565176010131836,"learning_rate": 0.0004551803455482833,"loss": 2.5463,"num_input_tokens_seen": 16619925056,"step": 63400},{"epoch": 0.30265809652145914,"grad_norm": 0.18989761173725128,"learning_rate": 0.0004495958811494978,"loss": 2.5609,"num_input_tokens_seen": 16633032256,"step": 63450},{"epoch": 0.3028965977795533,"grad_norm": 0.1870686262845993,"learning_rate": 0.0004440177619483461,"loss": 2.5554,"num_input_tokens_seen": 16646139456,"step": 63500},{"epoch": 0.3028965977795533,"eval_loss": 2.4395649433135986,"eval_runtime": 53.4665,"eval_samples_per_second": 93.516,"eval_steps_per_second": 23.379,"num_input_tokens_seen": 16646139456,"step": 63500},{"epoch": 0.3031350990376474,"grad_norm": 0.1891048699617386,"learning_rate": 0.00043844669015467863,"loss": 2.5627,"num_input_tokens_seen": 16659246656,"step": 63550},{"epoch": 0.30337360029574156,"grad_norm": 0.18591411411762238,"learning_rate": 0.0004328833670911724,"loss": 2.5545,"num_input_tokens_seen": 16672353856,"step": 63600},{"epoch": 0.3036121015538357,"grad_norm": 0.18640951812267303,"learning_rate": 0.0004273284931050438,"loss": 2.5672,"num_input_tokens_seen": 16685461056,"step": 63650},{"epoch": 0.3038506028119298,"grad_norm": 0.1919756680727005,"learning_rate": 0.0004217827674798845,"loss": 2.5492,"num_input_tokens_seen": 16698568256,"step": 63700},{"epoch": 0.304089104070024,"grad_norm": 0.18388938903808594,"learning_rate": 0.00041624688834763184,"loss": 2.5487,"num_input_tokens_seen": 16711675456,"step": 63750},{"epoch": 0.3043276053281181,"grad_norm": 0.1851562261581421,"learning_rate": 0.0004107215526006817,"loss": 2.5539,"num_input_tokens_seen": 16724782656,"step": 63800},{"epoch": 0.30456610658621225,"grad_norm": 0.17315496504306793,"learning_rate": 0.0004052074558041608,"loss": 2.5544,"num_input_tokens_seen": 16737889856,"step": 63850},{"epoch": 0.30480460784430635,"grad_norm": 0.17985352873802185,"learning_rate": 0.00039970529210836363,"loss": 2.5511,"num_input_tokens_seen": 16750997056,"step": 63900},{"epoch": 0.3050431091024005,"grad_norm": 0.20455212891101837,"learning_rate": 0.0003942157541613686,"loss": 2.5593,"num_input_tokens_seen": 16764104256,"step": 63950},{"epoch": 0.30528161036049467,"grad_norm": 0.1965632140636444,"learning_rate": 0.00038873953302184284,"loss": 2.5599,"num_input_tokens_seen": 16777211456,"step": 64000},{"epoch": 0.30528161036049467,"eval_loss": 2.437380790710449,"eval_runtime": 53.2524,"eval_samples_per_second": 93.893,"eval_steps_per_second": 23.473,"num_input_tokens_seen": 16777211456,"step": 64000}],"logging_steps": 50,"max_steps": 70000,"num_input_tokens_seen": 16777211456,"num_train_epochs": 1,"save_steps": 1000,"stateful_callbacks": {8 unmodified lines"attributes": {}}},"total_flos": 4.4880678100638106e+18,"train_batch_size": 64,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state.pth+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+182-4