Instructions to use itsdevice/lfm2-700m-decs1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use itsdevice/lfm2-700m-decs1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2-700M") model = PeftModel.from_pretrained(base_model, "itsdevice/lfm2-700m-decs1") - Transformers
How to use itsdevice/lfm2-700m-decs1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="itsdevice/lfm2-700m-decs1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("itsdevice/lfm2-700m-decs1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use itsdevice/lfm2-700m-decs1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "itsdevice/lfm2-700m-decs1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "itsdevice/lfm2-700m-decs1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/itsdevice/lfm2-700m-decs1
- SGLang
How to use itsdevice/lfm2-700m-decs1 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 "itsdevice/lfm2-700m-decs1" \ --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": "itsdevice/lfm2-700m-decs1", "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 "itsdevice/lfm2-700m-decs1" \ --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": "itsdevice/lfm2-700m-decs1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use itsdevice/lfm2-700m-decs1 with Docker Model Runner:
docker model run hf.co/itsdevice/lfm2-700m-decs1
Download trainer_state.json from itsdevice/lfm2-700m-decs1: direct link, hf CLI and curl.
- Browser
- Download file 17.9 kB
-
https://huggingface.co/itsdevice/lfm2-700m-decs1/resolve/main/trainer_state.json
- Command line
-
hf download hf://itsdevice/lfm2-700m-decs1/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/itsdevice/lfm2-700m-decs1/resolve/main/trainer_state.json
17.9 kB
| { | |
| "best_global_step": 904, | |
| "best_metric": 0.5769864320755005, | |
| "best_model_checkpoint": "/kaggle/working/out-u/checkpoint-904", | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 904, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.011068068622025456, | |
| "grad_norm": 0.7003251910209656, | |
| "learning_rate": 0.00018, | |
| "loss": 1.551503562927246, | |
| "step": 10 | |
| }, | |
| { | |
| "epoch": 0.02213613724405091, | |
| "grad_norm": 2.7986295223236084, | |
| "learning_rate": 0.00019999452505051744, | |
| "loss": 1.1627201080322265, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 0.03320420586607637, | |
| "grad_norm": 2.2195351123809814, | |
| "learning_rate": 0.00019997560006888767, | |
| "loss": 0.943748664855957, | |
| "step": 30 | |
| }, | |
| { | |
| "epoch": 0.04427227448810182, | |
| "grad_norm": 1.9694079160690308, | |
| "learning_rate": 0.0001999431600208807, | |
| "loss": 0.8101811408996582, | |
| "step": 40 | |
| }, | |
| { | |
| "epoch": 0.05534034311012728, | |
| "grad_norm": 2.126085042953491, | |
| "learning_rate": 0.00019989720929186055, | |
| "loss": 0.8210878372192383, | |
| "step": 50 | |
| }, | |
| { | |
| "epoch": 0.06640841173215274, | |
| "grad_norm": 2.0219054222106934, | |
| "learning_rate": 0.00019983775409361447, | |
| "loss": 0.9428280830383301, | |
| "step": 60 | |
| }, | |
| { | |
| "epoch": 0.0774764803541782, | |
| "grad_norm": 1.6450523138046265, | |
| "learning_rate": 0.00019976480246351304, | |
| "loss": 0.820793628692627, | |
| "step": 70 | |
| }, | |
| { | |
| "epoch": 0.08854454897620365, | |
| "grad_norm": 3.133209705352783, | |
| "learning_rate": 0.0001996783642634238, | |
| "loss": 0.7453525543212891, | |
| "step": 80 | |
| }, | |
| { | |
| "epoch": 0.0996126175982291, | |
| "grad_norm": 1.6528955698013306, | |
| "learning_rate": 0.000199578451178378, | |
| "loss": 0.8380961418151855, | |
| "step": 90 | |
| }, | |
| { | |
| "epoch": 0.11068068622025456, | |
| "grad_norm": 0.9878818392753601, | |
| "learning_rate": 0.00019946507671499098, | |
| "loss": 0.7764448165893555, | |
| "step": 100 | |
| }, | |
| { | |
| "epoch": 0.12174875484228002, | |
| "grad_norm": 1.4992568492889404, | |
| "learning_rate": 0.00019933825619963637, | |
| "loss": 0.7806774616241455, | |
| "step": 110 | |
| }, | |
| { | |
| "epoch": 0.13281682346430548, | |
| "grad_norm": 0.9147205948829651, | |
| "learning_rate": 0.00019919800677637418, | |
| "loss": 0.7486279010772705, | |
| "step": 120 | |
| }, | |
| { | |
| "epoch": 0.14388489208633093, | |
| "grad_norm": 1.821395754814148, | |
| "learning_rate": 0.00019904434740463306, | |
| "loss": 0.7937002182006836, | |
| "step": 130 | |
| }, | |
| { | |
| "epoch": 0.1549529607083564, | |
| "grad_norm": 1.3437554836273193, | |
| "learning_rate": 0.0001988772988566476, | |
| "loss": 0.9045222282409668, | |
| "step": 140 | |
| }, | |
| { | |
| "epoch": 0.16602102933038185, | |
| "grad_norm": 2.4391279220581055, | |
| "learning_rate": 0.0001986968837146499, | |
| "loss": 0.6484951496124267, | |
| "step": 150 | |
| }, | |
| { | |
| "epoch": 0.1770890979524073, | |
| "grad_norm": 0.6566305756568909, | |
| "learning_rate": 0.00019850312636781716, | |
| "loss": 0.8013534545898438, | |
| "step": 160 | |
| }, | |
| { | |
| "epoch": 0.18815716657443277, | |
| "grad_norm": 0.9988419413566589, | |
| "learning_rate": 0.00019829605300897445, | |
| "loss": 0.8133444786071777, | |
| "step": 170 | |
| }, | |
| { | |
| "epoch": 0.1992252351964582, | |
| "grad_norm": 1.1839921474456787, | |
| "learning_rate": 0.00019807569163105386, | |
| "loss": 0.730952787399292, | |
| "step": 180 | |
| }, | |
| { | |
| "epoch": 0.21029330381848368, | |
| "grad_norm": 0.9222057461738586, | |
| "learning_rate": 0.00019784207202331051, | |
| "loss": 0.8692678451538086, | |
| "step": 190 | |
| }, | |
| { | |
| "epoch": 0.22136137244050913, | |
| "grad_norm": 1.3638983964920044, | |
| "learning_rate": 0.00019759522576729533, | |
| "loss": 0.6029088020324707, | |
| "step": 200 | |
| }, | |
| { | |
| "epoch": 0.23242944106253458, | |
| "grad_norm": 0.8097462058067322, | |
| "learning_rate": 0.00019733518623258576, | |
| "loss": 0.6409613132476807, | |
| "step": 210 | |
| }, | |
| { | |
| "epoch": 0.24349750968456005, | |
| "grad_norm": 1.9707050323486328, | |
| "learning_rate": 0.0001970619885722749, | |
| "loss": 0.6212217807769775, | |
| "step": 220 | |
| }, | |
| { | |
| "epoch": 0.2545655783065855, | |
| "grad_norm": 1.7310115098953247, | |
| "learning_rate": 0.00019677566971821925, | |
| "loss": 0.601347017288208, | |
| "step": 230 | |
| }, | |
| { | |
| "epoch": 0.26563364692861097, | |
| "grad_norm": 0.9864627718925476, | |
| "learning_rate": 0.00019647626837604608, | |
| "loss": 0.7019010543823242, | |
| "step": 240 | |
| }, | |
| { | |
| "epoch": 0.27670171555063644, | |
| "grad_norm": 1.0971384048461914, | |
| "learning_rate": 0.00019616382501992123, | |
| "loss": 0.6423792362213134, | |
| "step": 250 | |
| }, | |
| { | |
| "epoch": 0.28776978417266186, | |
| "grad_norm": 0.9518958330154419, | |
| "learning_rate": 0.00019583838188707753, | |
| "loss": 0.6583141326904297, | |
| "step": 260 | |
| }, | |
| { | |
| "epoch": 0.29883785279468733, | |
| "grad_norm": 1.9420936107635498, | |
| "learning_rate": 0.00019549998297210502, | |
| "loss": 0.7063739776611329, | |
| "step": 270 | |
| }, | |
| { | |
| "epoch": 0.3099059214167128, | |
| "grad_norm": 1.7599754333496094, | |
| "learning_rate": 0.0001951486740210037, | |
| "loss": 0.700820779800415, | |
| "step": 280 | |
| }, | |
| { | |
| "epoch": 0.3209739900387382, | |
| "grad_norm": 2.2101471424102783, | |
| "learning_rate": 0.0001947845025249993, | |
| "loss": 0.6606018543243408, | |
| "step": 290 | |
| }, | |
| { | |
| "epoch": 0.3320420586607637, | |
| "grad_norm": 0.9978329539299011, | |
| "learning_rate": 0.00019440751771412332, | |
| "loss": 0.6316323280334473, | |
| "step": 300 | |
| }, | |
| { | |
| "epoch": 0.34311012728278917, | |
| "grad_norm": 0.9603744149208069, | |
| "learning_rate": 0.00019401777055055795, | |
| "loss": 0.7256864070892334, | |
| "step": 310 | |
| }, | |
| { | |
| "epoch": 0.3541781959048146, | |
| "grad_norm": 1.1202661991119385, | |
| "learning_rate": 0.00019361531372174678, | |
| "loss": 0.5975154876708985, | |
| "step": 320 | |
| }, | |
| { | |
| "epoch": 0.36524626452684006, | |
| "grad_norm": 0.9645261168479919, | |
| "learning_rate": 0.0001932002016332722, | |
| "loss": 0.6458422183990479, | |
| "step": 330 | |
| }, | |
| { | |
| "epoch": 0.37631433314886553, | |
| "grad_norm": 0.9332353472709656, | |
| "learning_rate": 0.00019277249040150092, | |
| "loss": 0.6855637550354003, | |
| "step": 340 | |
| }, | |
| { | |
| "epoch": 0.387382401770891, | |
| "grad_norm": 1.10996675491333, | |
| "learning_rate": 0.00019233223784599775, | |
| "loss": 0.6808820247650147, | |
| "step": 350 | |
| }, | |
| { | |
| "epoch": 0.3984504703929164, | |
| "grad_norm": 1.4130123853683472, | |
| "learning_rate": 0.00019187950348170936, | |
| "loss": 0.7799020290374756, | |
| "step": 360 | |
| }, | |
| { | |
| "epoch": 0.4095185390149419, | |
| "grad_norm": 1.3031306266784668, | |
| "learning_rate": 0.00019141434851091896, | |
| "loss": 0.6561980724334717, | |
| "step": 370 | |
| }, | |
| { | |
| "epoch": 0.42058660763696737, | |
| "grad_norm": 1.243798017501831, | |
| "learning_rate": 0.00019093683581497257, | |
| "loss": 0.7378020286560059, | |
| "step": 380 | |
| }, | |
| { | |
| "epoch": 0.4316546762589928, | |
| "grad_norm": 1.3958712816238403, | |
| "learning_rate": 0.0001904470299457787, | |
| "loss": 0.5962986946105957, | |
| "step": 390 | |
| }, | |
| { | |
| "epoch": 0.44272274488101826, | |
| "grad_norm": 1.111869215965271, | |
| "learning_rate": 0.0001899449971170817, | |
| "loss": 0.7748007774353027, | |
| "step": 400 | |
| }, | |
| { | |
| "epoch": 0.45379081350304373, | |
| "grad_norm": 1.315184473991394, | |
| "learning_rate": 0.00018943080519551108, | |
| "loss": 0.5024022102355957, | |
| "step": 410 | |
| }, | |
| { | |
| "epoch": 0.46485888212506915, | |
| "grad_norm": 1.5946266651153564, | |
| "learning_rate": 0.00018890452369140683, | |
| "loss": 0.6341619968414307, | |
| "step": 420 | |
| }, | |
| { | |
| "epoch": 0.4759269507470946, | |
| "grad_norm": 0.7681584358215332, | |
| "learning_rate": 0.00018836622374942278, | |
| "loss": 0.6347598552703857, | |
| "step": 430 | |
| }, | |
| { | |
| "epoch": 0.4869950193691201, | |
| "grad_norm": 1.2775044441223145, | |
| "learning_rate": 0.00018781597813890904, | |
| "loss": 0.6366340637207031, | |
| "step": 440 | |
| }, | |
| { | |
| "epoch": 0.49806308799114557, | |
| "grad_norm": 3.1273930072784424, | |
| "learning_rate": 0.00018725386124407485, | |
| "loss": 0.6621179103851318, | |
| "step": 450 | |
| }, | |
| { | |
| "epoch": 0.509131156613171, | |
| "grad_norm": 1.1721158027648926, | |
| "learning_rate": 0.00018667994905393291, | |
| "loss": 0.640518045425415, | |
| "step": 460 | |
| }, | |
| { | |
| "epoch": 0.5201992252351965, | |
| "grad_norm": 1.678696632385254, | |
| "learning_rate": 0.00018609431915202703, | |
| "loss": 0.6676612377166748, | |
| "step": 470 | |
| }, | |
| { | |
| "epoch": 0.5312672938572219, | |
| "grad_norm": 1.951829433441162, | |
| "learning_rate": 0.00018549705070594396, | |
| "loss": 0.6087896823883057, | |
| "step": 480 | |
| }, | |
| { | |
| "epoch": 0.5423353624792474, | |
| "grad_norm": 1.0700151920318604, | |
| "learning_rate": 0.00018488822445661141, | |
| "loss": 0.5172218322753906, | |
| "step": 490 | |
| }, | |
| { | |
| "epoch": 0.5534034311012729, | |
| "grad_norm": 1.3317490816116333, | |
| "learning_rate": 0.00018426792270738305, | |
| "loss": 0.5717203140258789, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 0.5644714997232982, | |
| "grad_norm": 1.7906837463378906, | |
| "learning_rate": 0.00018363622931291248, | |
| "loss": 0.6320934772491456, | |
| "step": 510 | |
| }, | |
| { | |
| "epoch": 0.5755395683453237, | |
| "grad_norm": 1.3441768884658813, | |
| "learning_rate": 0.00018299322966781753, | |
| "loss": 0.5849347114562988, | |
| "step": 520 | |
| }, | |
| { | |
| "epoch": 0.5866076369673492, | |
| "grad_norm": 1.3573132753372192, | |
| "learning_rate": 0.00018233901069513621, | |
| "loss": 0.5447701930999755, | |
| "step": 530 | |
| }, | |
| { | |
| "epoch": 0.5976757055893747, | |
| "grad_norm": 2.0250132083892822, | |
| "learning_rate": 0.00018167366083457611, | |
| "loss": 0.5718618869781494, | |
| "step": 540 | |
| }, | |
| { | |
| "epoch": 0.6087437742114001, | |
| "grad_norm": 2.8195626735687256, | |
| "learning_rate": 0.00018099727003055894, | |
| "loss": 0.6384985446929932, | |
| "step": 550 | |
| }, | |
| { | |
| "epoch": 0.6198118428334256, | |
| "grad_norm": 1.283890724182129, | |
| "learning_rate": 0.00018030992972006135, | |
| "loss": 0.6014298915863037, | |
| "step": 560 | |
| }, | |
| { | |
| "epoch": 0.630879911455451, | |
| "grad_norm": 1.3437632322311401, | |
| "learning_rate": 0.0001796117328202543, | |
| "loss": 0.7371634483337403, | |
| "step": 570 | |
| }, | |
| { | |
| "epoch": 0.6419479800774764, | |
| "grad_norm": 1.3118637800216675, | |
| "learning_rate": 0.00017890277371594205, | |
| "loss": 0.6678430080413819, | |
| "step": 580 | |
| }, | |
| { | |
| "epoch": 0.6530160486995019, | |
| "grad_norm": 0.5686549544334412, | |
| "learning_rate": 0.000178183148246803, | |
| "loss": 0.5912169456481934, | |
| "step": 590 | |
| }, | |
| { | |
| "epoch": 0.6640841173215274, | |
| "grad_norm": 3.093139410018921, | |
| "learning_rate": 0.00017745295369443355, | |
| "loss": 0.5687126159667969, | |
| "step": 600 | |
| }, | |
| { | |
| "epoch": 0.6751521859435529, | |
| "grad_norm": 1.4563064575195312, | |
| "learning_rate": 0.00017671228876919742, | |
| "loss": 0.6602816581726074, | |
| "step": 610 | |
| }, | |
| { | |
| "epoch": 0.6862202545655783, | |
| "grad_norm": 1.236803650856018, | |
| "learning_rate": 0.00017596125359688154, | |
| "loss": 0.5960356235504151, | |
| "step": 620 | |
| }, | |
| { | |
| "epoch": 0.6972883231876038, | |
| "grad_norm": 1.5709489583969116, | |
| "learning_rate": 0.0001751999497051606, | |
| "loss": 0.6075082302093506, | |
| "step": 630 | |
| }, | |
| { | |
| "epoch": 0.7083563918096292, | |
| "grad_norm": 1.5801299810409546, | |
| "learning_rate": 0.00017442848000987234, | |
| "loss": 0.5645394802093506, | |
| "step": 640 | |
| }, | |
| { | |
| "epoch": 0.7194244604316546, | |
| "grad_norm": 0.8133090734481812, | |
| "learning_rate": 0.0001736469488011048, | |
| "loss": 0.6678536415100098, | |
| "step": 650 | |
| }, | |
| { | |
| "epoch": 0.7304925290536801, | |
| "grad_norm": 3.020812511444092, | |
| "learning_rate": 0.00017285546172909829, | |
| "loss": 0.659450912475586, | |
| "step": 660 | |
| }, | |
| { | |
| "epoch": 0.7415605976757056, | |
| "grad_norm": 1.9561406373977661, | |
| "learning_rate": 0.00017205412578996283, | |
| "loss": 0.6484373092651368, | |
| "step": 670 | |
| }, | |
| { | |
| "epoch": 0.7526286662977311, | |
| "grad_norm": 1.4090468883514404, | |
| "learning_rate": 0.0001712430493112144, | |
| "loss": 0.6409557342529297, | |
| "step": 680 | |
| }, | |
| { | |
| "epoch": 0.7636967349197565, | |
| "grad_norm": 1.5994024276733398, | |
| "learning_rate": 0.00017042234193713056, | |
| "loss": 0.5894822120666504, | |
| "step": 690 | |
| }, | |
| { | |
| "epoch": 0.774764803541782, | |
| "grad_norm": 1.3047597408294678, | |
| "learning_rate": 0.00016959211461392855, | |
| "loss": 0.6261751651763916, | |
| "step": 700 | |
| }, | |
| { | |
| "epoch": 0.7858328721638074, | |
| "grad_norm": 2.0204825401306152, | |
| "learning_rate": 0.00016875247957476693, | |
| "loss": 0.5733428955078125, | |
| "step": 710 | |
| }, | |
| { | |
| "epoch": 0.7969009407858328, | |
| "grad_norm": 1.4954352378845215, | |
| "learning_rate": 0.0001679035503245737, | |
| "loss": 0.42127242088317873, | |
| "step": 720 | |
| }, | |
| { | |
| "epoch": 0.8079690094078583, | |
| "grad_norm": 1.4898450374603271, | |
| "learning_rate": 0.00016704544162470227, | |
| "loss": 0.6615350246429443, | |
| "step": 730 | |
| }, | |
| { | |
| "epoch": 0.8190370780298838, | |
| "grad_norm": 1.1447175741195679, | |
| "learning_rate": 0.00016617826947741738, | |
| "loss": 0.5380368232727051, | |
| "step": 740 | |
| }, | |
| { | |
| "epoch": 0.8301051466519093, | |
| "grad_norm": 2.0493688583374023, | |
| "learning_rate": 0.00016530215111021387, | |
| "loss": 0.6389055728912354, | |
| "step": 750 | |
| }, | |
| { | |
| "epoch": 0.8411732152739347, | |
| "grad_norm": 1.3106130361557007, | |
| "learning_rate": 0.00016441720495996912, | |
| "loss": 0.4852464199066162, | |
| "step": 760 | |
| }, | |
| { | |
| "epoch": 0.8522412838959601, | |
| "grad_norm": 1.521719217300415, | |
| "learning_rate": 0.00016352355065693238, | |
| "loss": 0.46153898239135743, | |
| "step": 770 | |
| }, | |
| { | |
| "epoch": 0.8633093525179856, | |
| "grad_norm": 1.318528175354004, | |
| "learning_rate": 0.00016262130900855282, | |
| "loss": 0.588550329208374, | |
| "step": 780 | |
| }, | |
| { | |
| "epoch": 0.874377421140011, | |
| "grad_norm": 1.8253792524337769, | |
| "learning_rate": 0.00016171060198314836, | |
| "loss": 0.49221124649047854, | |
| "step": 790 | |
| }, | |
| { | |
| "epoch": 0.8854454897620365, | |
| "grad_norm": 1.2250982522964478, | |
| "learning_rate": 0.00016079155269341732, | |
| "loss": 0.49785618782043456, | |
| "step": 800 | |
| }, | |
| { | |
| "epoch": 0.896513558384062, | |
| "grad_norm": 2.245898962020874, | |
| "learning_rate": 0.0001598642853797959, | |
| "loss": 0.5369725704193116, | |
| "step": 810 | |
| }, | |
| { | |
| "epoch": 0.9075816270060875, | |
| "grad_norm": 2.2160377502441406, | |
| "learning_rate": 0.0001589289253936626, | |
| "loss": 0.5264447212219239, | |
| "step": 820 | |
| }, | |
| { | |
| "epoch": 0.9186496956281129, | |
| "grad_norm": 1.447596788406372, | |
| "learning_rate": 0.00015798559918039307, | |
| "loss": 0.5702314853668213, | |
| "step": 830 | |
| }, | |
| { | |
| "epoch": 0.9297177642501383, | |
| "grad_norm": 2.508981466293335, | |
| "learning_rate": 0.0001570344342622665, | |
| "loss": 0.5943923950195312, | |
| "step": 840 | |
| }, | |
| { | |
| "epoch": 0.9407858328721638, | |
| "grad_norm": 2.2814784049987793, | |
| "learning_rate": 0.00015607555922122682, | |
| "loss": 0.502340030670166, | |
| "step": 850 | |
| }, | |
| { | |
| "epoch": 0.9518539014941892, | |
| "grad_norm": 0.6862772703170776, | |
| "learning_rate": 0.00015510910368150057, | |
| "loss": 0.5295324325561523, | |
| "step": 860 | |
| }, | |
| { | |
| "epoch": 0.9629219701162147, | |
| "grad_norm": 1.4329748153686523, | |
| "learning_rate": 0.00015413519829207367, | |
| "loss": 0.4763606548309326, | |
| "step": 870 | |
| }, | |
| { | |
| "epoch": 0.9739900387382402, | |
| "grad_norm": 1.6956130266189575, | |
| "learning_rate": 0.00015315397470903, | |
| "loss": 0.5186758518218995, | |
| "step": 880 | |
| }, | |
| { | |
| "epoch": 0.9850581073602657, | |
| "grad_norm": 1.1013898849487305, | |
| "learning_rate": 0.00015216556557775342, | |
| "loss": 0.5741925716400147, | |
| "step": 890 | |
| }, | |
| { | |
| "epoch": 0.9961261759822911, | |
| "grad_norm": 1.5364152193069458, | |
| "learning_rate": 0.00015117010451499654, | |
| "loss": 0.5071437358856201, | |
| "step": 900 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_loss": 0.5769864320755005, | |
| "eval_runtime": 30.2174, | |
| "eval_samples_per_second": 4.633, | |
| "eval_steps_per_second": 0.596, | |
| "step": 904 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 2712, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 2, | |
| "early_stopping_threshold": 0.0 | |
| }, | |
| "attributes": { | |
| "early_stopping_patience_counter": 0 | |
| } | |
| }, | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 0.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |