Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run SystemAdmin123/llama-68m 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/SystemAdmin123/llama-68m. 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/SystemAdmin123/llama-68m 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/SystemAdmin123/llama-68m. 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/SystemAdmin123/llama-68m. 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 SystemAdmin123/llama-68m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/llama-68m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/llama-68m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/llama-68m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/llama-68m", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/llama-68m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/llama-68m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/llama-68m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/llama-68m
- SGLang
How to use SystemAdmin123/llama-68m 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 "SystemAdmin123/llama-68m" \ --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": "SystemAdmin123/llama-68m", "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 "SystemAdmin123/llama-68m" \ --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": "SystemAdmin123/llama-68m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/llama-68m with Docker Model Runner:
docker model run hf.co/SystemAdmin123/llama-68m
Training in progress, step 100, checkpoint
Browse filesFiles changed (9)
- last-checkpoint/model.safetensors+1-1
- last-checkpoint/optimizer.pt+1-1
- last-checkpoint/rng_state_0.pth+2-2
- last-checkpoint/rng_state_1.pth+2-2
- last-checkpoint/rng_state_2.pthAdded+3
- last-checkpoint/rng_state_3.pthAdded+3
- last-checkpoint/scheduler.pt+1-1
- last-checkpoint/trainer_state.json+51-497
- last-checkpoint/training_args.bin+1-1
123version https://git-lfs.github.com/spec/v1oid sha256:463e50976fdd4523d72dfa1f9dde00e7d2fb94044b71ff95fa42ebac380383f9size 136062744123version https://git-lfs.github.com/spec/v1oid sha256:08823db6e7d3f7ecebdb39fa2abc5545b00f017474fd1d822068d0885a26f95dsize 136062744
123version https://git-lfs.github.com/spec/v1oid sha256:0622f360da035ed6f191ceef1a70160b2b4f027c1bb245098847e56aae470e88size 138234066123version https://git-lfs.github.com/spec/v1oid sha256:8e7d7dc966642f5cf110823004ec8a086c5b5536e976261bf7da9bb4f9cbd57dsize 138234066
123version https://git-lfs.github.com/spec/v1oid sha256:da2a7e5837e8166f34d69c47cbcb9c5f754b8d9aaee67ec69e6f2fe466d72356size 14512123version https://git-lfs.github.com/spec/v1oid sha256:a4651e32e118f1ea1a8e26dfbbe64298593e12e6a71bcd36cb77f04f86d3f86dsize 15024
123version https://git-lfs.github.com/spec/v1oid sha256:bd3708ae31f1069fc45ac5848423f03f6df0cd0e16b6138df98e3ba73d336476size 14512123version https://git-lfs.github.com/spec/v1oid sha256:f0c1eba909fbb51daca773a25c075f182b4096aff21c9b4ff19dbada2080ac99size 15024
123version https://git-lfs.github.com/spec/v1oid sha256:28adb9f06e220aefdc723ea4380a84d42b8bfb87cc53ce65859d55ce1876f51csize 15024123version https://git-lfs.github.com/spec/v1oid sha256:423c49ed521f6986d20d8b29112b383f4b0f3f2e228084ef82c2ad7dcd5d1de8size 15024123version https://git-lfs.github.com/spec/v1oid sha256:5ad54995b081fae25638228c5d9c8f38ca277e5c5ad00bc3e49897b543f84405size 1064123version https://git-lfs.github.com/spec/v1oid sha256:3a60c7d771c1fd156acee762fba03c724cb41829a3f71df370ecd1d20b134982size 1064
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425436 unmodified lines550551552553554555556{"best_metric": null,"best_model_checkpoint": null,"epoch": 46.15384615384615,"eval_steps": 50,"global_step": 600,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,"log_history": [{"epoch": 0.07692307692307693,"eval_loss": 3.9168343544006348,"eval_runtime": 5.6922,"eval_samples_per_second": 263.695,"eval_steps_per_second": 4.216,"step": 1},{"epoch": 0.7692307692307693,"grad_norm": 1.3671875,"learning_rate": 6.666666666666667e-05,"loss": 3.3633,"step": 10},{"epoch": 1.5384615384615383,"grad_norm": 1.09375,"learning_rate": 0.00013333333333333334,"loss": 3.1311,"step": 20},{"epoch": 2.3076923076923075,"grad_norm": 0.8203125,"learning_rate": 0.0002,"loss": 2.9153,"step": 30},{"epoch": 3.076923076923077,"grad_norm": 0.7265625,"learning_rate": 0.00019984815164333163,"loss": 2.7539,"step": 40},{"epoch": 3.8461538461538463,"grad_norm": 0.71875,"learning_rate": 0.00019939306773179497,"loss": 2.5978,"step": 50},{"epoch": 3.8461538461538463,"eval_loss": 2.814912796020508,"eval_runtime": 5.762,"eval_samples_per_second": 260.499,"eval_steps_per_second": 4.165,"step": 50},{"epoch": 4.615384615384615,"grad_norm": 0.71484375,"learning_rate": 0.00019863613034027224,"loss": 2.4698,"step": 60},{"epoch": 5.384615384615385,"grad_norm": 0.7734375,"learning_rate": 0.00019757963826274357,"loss": 2.3909,"step": 70},{"epoch": 6.153846153846154,"grad_norm": 0.765625,"learning_rate": 0.00019622680003092503,"loss": 2.2723,"step": 80},{"epoch": 6.923076923076923,"grad_norm": 0.796875,"learning_rate": 0.00019458172417006347,"loss": 2.1816,"step": 90},{"epoch": 7.6923076923076925,"grad_norm": 0.8203125,"learning_rate": 0.00019264940672148018,"loss": 2.0808,"step": 100},{"epoch": 7.6923076923076925,"eval_loss": 2.966378927230835,"eval_runtime": 5.6204,"eval_samples_per_second": 267.064,"eval_steps_per_second": 4.27,"step": 100},{"epoch": 8.461538461538462,"grad_norm": 0.83984375,"learning_rate": 0.00019043571606975777,"loss": 1.9902,"step": 110},{"epoch": 9.23076923076923,"grad_norm": 0.99609375,"learning_rate": 0.0001879473751206489,"loss": 1.9033,"step": 120},{"epoch": 10.0,"grad_norm": 0.83984375,"learning_rate": 0.00018519194088383273,"loss": 1.8173,"step": 130},{"epoch": 10.76923076923077,"grad_norm": 0.87890625,"learning_rate": 0.0001821777815225245,"loss": 1.7058,"step": 140},{"epoch": 11.538461538461538,"grad_norm": 0.9296875,"learning_rate": 0.00017891405093963938,"loss": 1.6294,"step": 150},{"epoch": 11.538461538461538,"eval_loss": 3.233675003051758,"eval_runtime": 5.5692,"eval_samples_per_second": 269.517,"eval_steps_per_second": 4.309,"step": 150},{"epoch": 12.307692307692308,"grad_norm": 0.9921875,"learning_rate": 0.00017541066097768963,"loss": 1.5563,"step": 160},{"epoch": 13.076923076923077,"grad_norm": 1.0546875,"learning_rate": 0.00017167825131684513,"loss": 1.4865,"step": 170},{"epoch": 13.846153846153847,"grad_norm": 0.94921875,"learning_rate": 0.00016772815716257412,"loss": 1.3938,"step": 180},{"epoch": 14.615384615384615,"grad_norm": 0.90625,"learning_rate": 0.00016357237482099684,"loss": 1.3247,"step": 190},{"epoch": 15.384615384615385,"grad_norm": 0.99609375,"learning_rate": 0.00015922352526649803,"loss": 1.2699,"step": 200},{"epoch": 15.384615384615385,"eval_loss": 3.521737813949585,"eval_runtime": 5.6468,"eval_samples_per_second": 265.815,"eval_steps_per_second": 4.25,"step": 200},{"epoch": 16.153846153846153,"grad_norm": 0.95703125,"learning_rate": 0.00015469481581224272,"loss": 1.2117,"step": 210},{"epoch": 16.923076923076923,"grad_norm": 1.0390625,"learning_rate": 0.00015000000000000001,"loss": 1.1498,"step": 220},{"epoch": 17.692307692307693,"grad_norm": 1.0078125,"learning_rate": 0.00014515333583108896,"loss": 1.0864,"step": 230},{"epoch": 18.46153846153846,"grad_norm": 0.81640625,"learning_rate": 0.00014016954246529696,"loss": 1.0441,"step": 240},{"epoch": 19.23076923076923,"grad_norm": 0.98828125,"learning_rate": 0.00013506375551927547,"loss": 1.0092,"step": 250},{"epoch": 19.23076923076923,"eval_loss": 3.726165533065796,"eval_runtime": 5.8207,"eval_samples_per_second": 257.872,"eval_steps_per_second": 4.123,"step": 250},{"epoch": 20.0,"grad_norm": 0.8359375,"learning_rate": 0.00012985148110016947,"loss": 0.9671,"step": 260},{"epoch": 20.76923076923077,"grad_norm": 0.8203125,"learning_rate": 0.00012454854871407994,"loss": 0.9182,"step": 270},{"epoch": 21.53846153846154,"grad_norm": 0.796875,"learning_rate": 0.00011917106319237386,"loss": 0.8857,"step": 280},{"epoch": 22.307692307692307,"grad_norm": 0.79296875,"learning_rate": 0.00011373535578184082,"loss": 0.8623,"step": 290},{"epoch": 23.076923076923077,"grad_norm": 0.7421875,"learning_rate": 0.00010825793454723325,"loss": 0.8392,"step": 300},{"epoch": 23.076923076923077,"eval_loss": 3.868284225463867,"eval_runtime": 5.7191,"eval_samples_per_second": 262.455,"eval_steps_per_second": 4.196,"step": 300},{"epoch": 23.846153846153847,"grad_norm": 0.75,"learning_rate": 0.00010275543423681621,"loss": 0.8103,"step": 310},{"epoch": 24.615384615384617,"grad_norm": 0.75390625,"learning_rate": 9.724456576318381e-05,"loss": 0.7828,"step": 320},{"epoch": 25.384615384615383,"grad_norm": 0.7265625,"learning_rate": 9.174206545276677e-05,"loss": 0.7749,"step": 330},{"epoch": 26.153846153846153,"grad_norm": 0.74609375,"learning_rate": 8.626464421815919e-05,"loss": 0.7574,"step": 340},{"epoch": 26.923076923076923,"grad_norm": 0.6875,"learning_rate": 8.082893680762619e-05,"loss": 0.7428,"step": 350},{"epoch": 26.923076923076923,"eval_loss": 3.9434773921966553,"eval_runtime": 5.6325,"eval_samples_per_second": 266.49,"eval_steps_per_second": 4.261,"step": 350},{"epoch": 27.692307692307693,"grad_norm": 0.6953125,"learning_rate": 7.54514512859201e-05,"loss": 0.7298,"step": 360},{"epoch": 28.46153846153846,"grad_norm": 0.66015625,"learning_rate": 7.014851889983057e-05,"loss": 0.7167,"step": 370},{"epoch": 29.23076923076923,"grad_norm": 0.65625,"learning_rate": 6.493624448072457e-05,"loss": 0.7147,"step": 380},{"epoch": 30.0,"grad_norm": 0.69140625,"learning_rate": 5.983045753470308e-05,"loss": 0.7019,"step": 390},{"epoch": 30.76923076923077,"grad_norm": 0.66796875,"learning_rate": 5.484666416891109e-05,"loss": 0.6952,"step": 400},{"epoch": 30.76923076923077,"eval_loss": 3.985978841781616,"eval_runtime": 5.6438,"eval_samples_per_second": 265.955,"eval_steps_per_second": 4.252,"step": 400},{"epoch": 31.53846153846154,"grad_norm": 0.6484375,"learning_rate": 5.000000000000002e-05,"loss": 0.6901,"step": 410},{"epoch": 32.30769230769231,"grad_norm": 0.640625,"learning_rate": 4.530518418775733e-05,"loss": 0.685,"step": 420},{"epoch": 33.07692307692308,"grad_norm": 0.62890625,"learning_rate": 4.077647473350201e-05,"loss": 0.6851,"step": 430},{"epoch": 33.84615384615385,"grad_norm": 0.62109375,"learning_rate": 3.642762517900322e-05,"loss": 0.6782,"step": 440},{"epoch": 34.61538461538461,"grad_norm": 0.6171875,"learning_rate": 3.227184283742591e-05,"loss": 0.6762,"step": 450},{"epoch": 34.61538461538461,"eval_loss": 3.998966932296753,"eval_runtime": 5.7156,"eval_samples_per_second": 262.613,"eval_steps_per_second": 4.199,"step": 450},{"epoch": 35.38461538461539,"grad_norm": 0.62109375,"learning_rate": 2.8321748683154893e-05,"loss": 0.6742,"step": 460},{"epoch": 36.15384615384615,"grad_norm": 0.6171875,"learning_rate": 2.4589339022310386e-05,"loss": 0.674,"step": 470},{"epoch": 36.92307692307692,"grad_norm": 0.62109375,"learning_rate": 2.1085949060360654e-05,"loss": 0.6728,"step": 480},{"epoch": 37.69230769230769,"grad_norm": 0.6171875,"learning_rate": 1.7822218477475494e-05,"loss": 0.6681,"step": 490},{"epoch": 38.46153846153846,"grad_norm": 0.62109375,"learning_rate": 1.4808059116167305e-05,"loss": 0.6739,"step": 500},{"epoch": 38.46153846153846,"eval_loss": 4.016704559326172,"eval_runtime": 5.9697,"eval_samples_per_second": 251.437,"eval_steps_per_second": 4.02,"step": 500},{"epoch": 39.23076923076923,"grad_norm": 0.61328125,"learning_rate": 1.2052624879351104e-05,"loss": 0.6685,"step": 510},{"epoch": 40.0,"grad_norm": 0.625,"learning_rate": 9.564283930242257e-06,"loss": 0.6697,"step": 520},{"epoch": 40.76923076923077,"grad_norm": 0.60546875,"learning_rate": 7.350593278519824e-06,"loss": 0.6691,"step": 530},{"epoch": 41.53846153846154,"grad_norm": 0.609375,"learning_rate": 5.418275829936537e-06,"loss": 0.6709,"step": 540},{"epoch": 42.30769230769231,"grad_norm": 0.62109375,"learning_rate": 3.7731999690749585e-06,"loss": 0.6691,"step": 550},{"epoch": 42.30769230769231,"eval_loss": 4.020811080932617,"eval_runtime": 5.6558,"eval_samples_per_second": 265.392,"eval_steps_per_second": 4.243,"step": 550},{"epoch": 43.07692307692308,"grad_norm": 0.61328125,"learning_rate": 2.420361737256438e-06,"loss": 0.6671,"step": 560},{"epoch": 43.84615384615385,"grad_norm": 0.62890625,"learning_rate": 1.3638696597277679e-06,"loss": 0.6683,"step": 570},{"epoch": 44.61538461538461,"grad_norm": 0.59375,"learning_rate": 6.069322682050516e-07,"loss": 0.6714,"step": 580},{"epoch": 45.38461538461539,"grad_norm": 0.6015625,"learning_rate": 1.518483566683826e-07,"loss": 0.6695,"step": 590},{"epoch": 46.15384615384615,"grad_norm": 0.62109375,"learning_rate": 0.0,"loss": 0.6667,"step": 600},{"epoch": 46.15384615384615,"eval_loss": 4.010259628295898,"eval_runtime": 5.6787,"eval_samples_per_second": 264.32,"eval_steps_per_second": 4.226,"step": 600}],"logging_steps": 10,"max_steps": 600,"num_input_tokens_seen": 0,"num_train_epochs": 47,"save_steps": 50,"stateful_callbacks": {"TrainerControl": {"args": {6 unmodified lines"attributes": {}}},"total_flos": 2.05042678235136e+16,"train_batch_size": 32,"trial_name": null,"trial_params": null123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596976 unmodified lines104105106107108109110{"best_metric": null,"best_model_checkpoint": null,"epoch": 16.666666666666668,"eval_steps": 200,"global_step": 100,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,"log_history": [{"epoch": 0.16666666666666666,"eval_loss": 3.9322755336761475,"eval_runtime": 2.5681,"eval_samples_per_second": 584.476,"eval_steps_per_second": 4.673,"step": 1},{"epoch": 1.6666666666666665,"grad_norm": 1.1328125,"learning_rate": 0.00019863613034027224,"loss": 3.2122,"step": 10},{"epoch": 3.3333333333333335,"grad_norm": 0.671875,"learning_rate": 0.0001879473751206489,"loss": 2.8046,"step": 20},{"epoch": 5.0,"grad_norm": 0.5078125,"learning_rate": 0.00016772815716257412,"loss": 2.6022,"step": 30},{"epoch": 6.666666666666667,"grad_norm": 0.482421875,"learning_rate": 0.00014016954246529696,"loss": 2.4584,"step": 40},{"epoch": 8.333333333333334,"grad_norm": 0.439453125,"learning_rate": 0.00010825793454723325,"loss": 2.3679,"step": 50},{"epoch": 10.0,"grad_norm": 0.423828125,"learning_rate": 7.54514512859201e-05,"loss": 2.3013,"step": 60},{"epoch": 11.666666666666666,"grad_norm": 0.40625,"learning_rate": 4.530518418775733e-05,"loss": 2.2634,"step": 70},{"epoch": 13.333333333333334,"grad_norm": 0.392578125,"learning_rate": 2.1085949060360654e-05,"loss": 2.252,"step": 80},{"epoch": 15.0,"grad_norm": 0.392578125,"learning_rate": 5.418275829936537e-06,"loss": 2.2463,"step": 90},{"epoch": 16.666666666666668,"grad_norm": 0.396484375,"learning_rate": 0.0,"loss": 2.2461,"step": 100}],"logging_steps": 10,"max_steps": 100,"num_input_tokens_seen": 0,"num_train_epochs": 17,"save_steps": 200,"stateful_callbacks": {"TrainerControl": {"args": {6 unmodified lines"attributes": {}}},"total_flos": 6834755941171200.0,"train_batch_size": 32,"trial_name": null,"trial_params": null
123version https://git-lfs.github.com/spec/v1oid sha256:5307f347a34c2795320714166ddd7cfa8a75c74197145a984dc8fe0048273f0esize 6840123version https://git-lfs.github.com/spec/v1oid sha256:c99f76655201d3a5e646acd9bbe970d07860ce4d230a73ef72b05ccbd756ed49size 6840
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/rng_state_0.pth+2-2
last-checkpoint/rng_state_1.pth+2-2
last-checkpoint/rng_state_2.pthAdded+3
last-checkpoint/rng_state_3.pthAdded+3
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+51-497
last-checkpoint/training_args.bin+1-1