Instructions to use hardlyworking/Beef-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use hardlyworking/Beef-12B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("hardlyworking/Noodles-Merge-12B") model = PeftModel.from_pretrained(base_model, "hardlyworking/Beef-12B") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 537, checkpoint
Browse filesFiles changed (23)
- checkpoint-537/README.mdAdded+202
- checkpoint-537/adapter_config.jsonAdded+42
- checkpoint-537/adapter_model.safetensorsAdded+3
- checkpoint-537/global_step536/bf16_zero_pp_rank_0_mp_rank_00_optim_states.ptAdded+3
- checkpoint-537/global_step536/bf16_zero_pp_rank_1_mp_rank_00_optim_states.ptAdded+3
- checkpoint-537/global_step536/bf16_zero_pp_rank_2_mp_rank_00_optim_states.ptAdded+3
- checkpoint-537/global_step536/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
- checkpoint-537/global_step536/zero_pp_rank_0_mp_rank_00_model_states.ptAdded+3
- checkpoint-537/global_step536/zero_pp_rank_1_mp_rank_00_model_states.ptAdded+3
- checkpoint-537/global_step536/zero_pp_rank_2_mp_rank_00_model_states.ptAdded+3
- checkpoint-537/global_step536/zero_pp_rank_3_mp_rank_00_model_states.ptAdded+3
- checkpoint-537/latestAdded+1
- checkpoint-537/rng_state_0.pthAdded+3
- checkpoint-537/rng_state_1.pthAdded+3
- checkpoint-537/rng_state_2.pthAdded+3
- checkpoint-537/rng_state_3.pthAdded+3
- checkpoint-537/scheduler.ptAdded+3
- checkpoint-537/special_tokens_map.jsonAdded+30
- checkpoint-537/tokenizer.jsonAdded+3
- checkpoint-537/tokenizer_config.jsonAdded
- checkpoint-537/trainer_state.jsonAdded+3889
- checkpoint-537/training_args.binAdded+3
- checkpoint-537/zero_to_fp32.pyAdded+674
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202---base_model: hardlyworking/Noodles-Merge-12Blibrary_name: peft---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]- **Funded by [optional]:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]- **Paper [optional]:** [More Information Needed]- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
- **Hardware Type:** [More Information Needed]- **Hours used:** [More Information Needed]- **Cloud Provider:** [More Information Needed]- **Compute Region:** [More Information Needed]- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]### Framework versions
- PEFT 0.15.1123456789101112131415161718192021222324252627282930313233343536373839404142{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "hardlyworking/Noodles-Merge-12B", "bias": "none", "corda_config": null, "eva_config": null, "exclude_modules": null, "fan_in_fan_out": null, "inference_mode": true, "init_lora_weights": true, "layer_replication": null, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_bias": false, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": [ "embed_tokens", "lm_head" ], "peft_type": "LORA", "r": 128, "rank_pattern": {}, "revision": null, "target_modules": [ "o_proj", "down_proj", "gate_proj", "up_proj", "k_proj", "q_proj", "v_proj" ], "task_type": "CAUSAL_LM", "trainable_token_indices": null, "use_dora": false, "use_rslora": true}123version https://git-lfs.github.com/spec/v1oid sha256:4c2b3bdb938a5080aca2a37a024dcb6c652ec05fd000e0447e5353178e0b4204size 3596694008123version https://git-lfs.github.com/spec/v1oid sha256:f0266aa7084d31e86a46f2ed56f2bc7b4ba3ad061890caf7e246ad513fb7c8dfsize 2712460238123version https://git-lfs.github.com/spec/v1oid sha256:f75deeea96f26a4382ad09e3f4297fbe32731eb37404ca86c8d1c5b40f0beae5size 2712460238123version https://git-lfs.github.com/spec/v1oid sha256:418b65934f15e13b7242d782be5bf39a7f0835c5497363942d8c0843e386c190size 2712460238123version https://git-lfs.github.com/spec/v1oid sha256:913611695f1bf834b03c3c51b24e75645b948dfb02b4edb8e76825dc9fe23a79size 2712460238123version https://git-lfs.github.com/spec/v1oid sha256:8535ffdaee356b6a0a44ec445b4bc4b61344f55d08a2a2cfc991cec4a5d0b2besize 558360123version https://git-lfs.github.com/spec/v1oid sha256:a0d1fdd8e7cf14fb20d2c7eb5a436858ac1af70fb718c145a0a0571dd1bfcd4dsize 558360123version https://git-lfs.github.com/spec/v1oid sha256:ea96919503037b6ee35e95aa3cbd91ff50615f6859a0a8daa32d989443cfea71size 558360123version https://git-lfs.github.com/spec/v1oid sha256:4022f8c4ec8c8d3f42d121e033d50adc3e300684cee142f19da51f62080d0495size 5583601global_step536123version https://git-lfs.github.com/spec/v1oid sha256:ffb0bab659b725e6bd3892db991820811cfb5ee74a15421aa01d30a189f31f8bsize 15024123version https://git-lfs.github.com/spec/v1oid sha256:56296bf6290d6c9ead324a42eb1210df2347e1a607ba1fce139e7f496656e668size 15024123version https://git-lfs.github.com/spec/v1oid sha256:ba210a4f17dce49e4c4f831b27d74f8844eac231c65bd5456652b45074b7d139size 15024123version https://git-lfs.github.com/spec/v1oid sha256:0eaae1538cc7680ee1d1fce13ce15d398ffaf7c9d226b7d902ece8d0b95e8a0dsize 15024123version https://git-lfs.github.com/spec/v1oid sha256:77a4880fca3037f16bd6f56755531c564670eb15b9900814a53fad1f0741f15fsize 1064123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:4b4c8fcd33487a449c07f423d47adb035bba8347ccf13eb074b4d1fef8acf919size 170782881234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889{ "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 1.496513249651325, "eval_steps": 45, "global_step": 537, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true, "log_history": [ { "epoch": 0.002789400278940028, "grad_norm": 2.008944315843832, "learning_rate": 0.0, "loss": 1.7653, "step": 1 }, { "epoch": 0.002789400278940028, "eval_loss": 1.7864996194839478, "eval_runtime": 155.6922, "eval_samples_per_second": 2.042, "eval_steps_per_second": 0.128, "step": 1 }, { "epoch": 0.005578800557880056, "grad_norm": 1.5986956798562522, "learning_rate": 5.000000000000001e-07, "loss": 1.3721, "step": 2 }, { "epoch": 0.008368200836820083, "grad_norm": 2.487093074085383, "learning_rate": 1.0000000000000002e-06, "loss": 1.4468, "step": 3 }, { "epoch": 0.011157601115760111, "grad_norm": 1.9408908369837041, "learning_rate": 1.5e-06, "loss": 1.8555, "step": 4 }, { "epoch": 0.01394700139470014, "grad_norm": 1.855397723025267, "learning_rate": 2.0000000000000003e-06, "loss": 1.5173, "step": 5 }, { "epoch": 0.016736401673640166, "grad_norm": 1.6798170163537172, "learning_rate": 2.5e-06, "loss": 1.3812, "step": 6 }, { "epoch": 0.019525801952580194, "grad_norm": 2.0478066370088133, "learning_rate": 3e-06, "loss": 1.475, "step": 7 }, { "epoch": 0.022315202231520222, "grad_norm": 1.6541684745930123, "learning_rate": 3.5e-06, "loss": 1.6239, "step": 8 }, { "epoch": 0.02510460251046025, "grad_norm": 1.5940373225900581, "learning_rate": 4.000000000000001e-06, "loss": 1.4474, "step": 9 }, { "epoch": 0.02789400278940028, "grad_norm": 1.3436762031717087, "learning_rate": 4.5e-06, "loss": 1.5277, "step": 10 }, { "epoch": 0.030683403068340307, "grad_norm": 1.4820988105255548, "learning_rate": 5e-06, "loss": 1.3905, "step": 11 }, { "epoch": 0.03347280334728033, "grad_norm": 1.3026823080341792, "learning_rate": 5.500000000000001e-06, "loss": 1.2716, "step": 12 }, { "epoch": 0.03626220362622036, "grad_norm": 1.2786618249049673, "learning_rate": 6e-06, "loss": 1.4357, "step": 13 }, { "epoch": 0.03905160390516039, "grad_norm": 1.4401448629219828, "learning_rate": 6.5000000000000004e-06, "loss": 1.5418, "step": 14 }, { "epoch": 0.04184100418410042, "grad_norm": 1.4108691585319235, "learning_rate": 7e-06, "loss": 1.419, "step": 15 }, { "epoch": 0.044630404463040445, "grad_norm": 1.434665713671276, "learning_rate": 7.500000000000001e-06, "loss": 1.4042, "step": 16 }, { "epoch": 0.04741980474198047, "grad_norm": 1.4864898541989087, "learning_rate": 8.000000000000001e-06, "loss": 1.4338, "step": 17 }, { "epoch": 0.0502092050209205, "grad_norm": 1.7497952919365851, "learning_rate": 8.5e-06, "loss": 1.5988, "step": 18 }, { "epoch": 0.05299860529986053, "grad_norm": 1.5825124800137, "learning_rate": 9e-06, "loss": 1.4817, "step": 19 }, { "epoch": 0.05578800557880056, "grad_norm": 1.5639582937511203, "learning_rate": 9.5e-06, "loss": 1.3795, "step": 20 }, { "epoch": 0.058577405857740586, "grad_norm": 1.5512627729747626, "learning_rate": 1e-05, "loss": 1.4833, "step": 21 }, { "epoch": 0.061366806136680614, "grad_norm": 1.4462678614801439, "learning_rate": 1.0500000000000001e-05, "loss": 1.3781, "step": 22 }, { "epoch": 0.06415620641562064, "grad_norm": 1.5995776178618928, "learning_rate": 1.1000000000000001e-05, "loss": 1.4862, "step": 23 }, { "epoch": 0.06694560669456066, "grad_norm": 1.2623925872690254, "learning_rate": 1.15e-05, "loss": 1.4222, "step": 24 }, { "epoch": 0.0697350069735007, "grad_norm": 1.2816346894508914, "learning_rate": 1.2e-05, "loss": 1.3473, "step": 25 }, { "epoch": 0.07252440725244072, "grad_norm": 1.4528035335148701, "learning_rate": 1.25e-05, "loss": 1.5278, "step": 26 }, { "epoch": 0.07531380753138076, "grad_norm": 1.3415339044507064, "learning_rate": 1.3000000000000001e-05, "loss": 1.3939, "step": 27 }, { "epoch": 0.07810320781032078, "grad_norm": 1.6072610009319113, "learning_rate": 1.3500000000000001e-05, "loss": 1.5401, "step": 28 }, { "epoch": 0.08089260808926081, "grad_norm": 1.5988215139386146, "learning_rate": 1.4e-05, "loss": 1.3995, "step": 29 }, { "epoch": 0.08368200836820083, "grad_norm": 1.4507828208303803, "learning_rate": 1.45e-05, "loss": 1.4584, "step": 30 }, { "epoch": 0.08647140864714087, "grad_norm": 1.4975002404633069, "learning_rate": 1.5000000000000002e-05, "loss": 1.3834, "step": 31 }, { "epoch": 0.08926080892608089, "grad_norm": 1.4128570529331854, "learning_rate": 1.55e-05, "loss": 1.4216, "step": 32 }, { "epoch": 0.09205020920502092, "grad_norm": 1.3616495178863832, "learning_rate": 1.6000000000000003e-05, "loss": 1.5167, "step": 33 }, { "epoch": 0.09483960948396095, "grad_norm": 1.1988790310990909, "learning_rate": 1.65e-05, "loss": 1.4525, "step": 34 }, { "epoch": 0.09762900976290098, "grad_norm": 1.4483022749153813, "learning_rate": 1.7e-05, "loss": 1.5741, "step": 35 }, { "epoch": 0.100418410041841, "grad_norm": 1.394589777246842, "learning_rate": 1.7500000000000002e-05, "loss": 1.6437, "step": 36 }, { "epoch": 0.10320781032078104, "grad_norm": 1.4186049044929165, "learning_rate": 1.8e-05, "loss": 1.5162, "step": 37 }, { "epoch": 0.10599721059972106, "grad_norm": 1.4241876007622027, "learning_rate": 1.8500000000000002e-05, "loss": 1.2395, "step": 38 }, { "epoch": 0.1087866108786611, "grad_norm": 1.3743075911034852, "learning_rate": 1.9e-05, "loss": 1.4631, "step": 39 }, { "epoch": 0.11157601115760112, "grad_norm": 1.2863497247985725, "learning_rate": 1.95e-05, "loss": 1.3611, "step": 40 }, { "epoch": 0.11436541143654114, "grad_norm": 1.3054075793205129, "learning_rate": 2e-05, "loss": 1.2375, "step": 41 }, { "epoch": 0.11715481171548117, "grad_norm": 1.447249035073335, "learning_rate": 1.9999892011980525e-05, "loss": 1.4044, "step": 42 }, { "epoch": 0.1199442119944212, "grad_norm": 1.3461748028257197, "learning_rate": 1.9999568050254373e-05, "loss": 1.4081, "step": 43 }, { "epoch": 0.12273361227336123, "grad_norm": 1.6035229132022362, "learning_rate": 1.999902812181835e-05, "loss": 1.4167, "step": 44 }, { "epoch": 0.12552301255230125, "grad_norm": 1.7750306011999208, "learning_rate": 1.9998272238333606e-05, "loss": 1.3533, "step": 45 }, { "epoch": 0.12552301255230125, "eval_loss": 1.6828460693359375, "eval_runtime": 158.4193, "eval_samples_per_second": 2.007, "eval_steps_per_second": 0.126, "step": 45 }, { "epoch": 0.12831241283124128, "grad_norm": 1.354470787639867, "learning_rate": 1.9997300416125426e-05, "loss": 1.3901, "step": 46 }, { "epoch": 0.13110181311018132, "grad_norm": 1.23248602443203, "learning_rate": 1.999611267618283e-05, "loss": 1.3485, "step": 47 }, { "epoch": 0.13389121338912133, "grad_norm": 1.314827114627873, "learning_rate": 1.9994709044158157e-05, "loss": 1.3195, "step": 48 }, { "epoch": 0.13668061366806136, "grad_norm": 1.3741001015735983, "learning_rate": 1.99930895503665e-05, "loss": 1.4394, "step": 49 }, { "epoch": 0.1394700139470014, "grad_norm": 1.1624406309888304, "learning_rate": 1.9991254229785043e-05, "loss": 1.2943, "step": 50 }, { "epoch": 0.14225941422594143, "grad_norm": 1.431188759221728, "learning_rate": 1.998920312205231e-05, "loss": 1.4614, "step": 51 }, { "epoch": 0.14504881450488144, "grad_norm": 1.2513371987994648, "learning_rate": 1.9986936271467316e-05, "loss": 1.328, "step": 52 }, { "epoch": 0.14783821478382148, "grad_norm": 1.6084481811469094, "learning_rate": 1.99844537269886e-05, "loss": 1.4579, "step": 53 }, { "epoch": 0.1506276150627615, "grad_norm": 1.3643143080926854, "learning_rate": 1.9981755542233175e-05, "loss": 1.4471, "step": 54 }, { "epoch": 0.15341701534170155, "grad_norm": 1.443453372098446, "learning_rate": 1.9978841775475368e-05, "loss": 1.3931, "step": 55 }, { "epoch": 0.15620641562064155, "grad_norm": 1.186174044031903, "learning_rate": 1.997571248964556e-05, "loss": 1.2935, "step": 56 }, { "epoch": 0.1589958158995816, "grad_norm": 1.3967845728055575, "learning_rate": 1.9972367752328824e-05, "loss": 1.3819, "step": 57 }, { "epoch": 0.16178521617852162, "grad_norm": 1.585201984076838, "learning_rate": 1.9968807635763472e-05, "loss": 1.5391, "step": 58 }, { "epoch": 0.16457461645746166, "grad_norm": 1.515327450581085, "learning_rate": 1.9965032216839493e-05, "loss": 1.3969, "step": 59 }, { "epoch": 0.16736401673640167, "grad_norm": 1.3595894447160555, "learning_rate": 1.996104157709689e-05, "loss": 1.3598, "step": 60 }, { "epoch": 0.1701534170153417, "grad_norm": 1.4252798961269173, "learning_rate": 1.9956835802723916e-05, "loss": 1.447, "step": 61 }, { "epoch": 0.17294281729428174, "grad_norm": 1.4269613254937963, "learning_rate": 1.9952414984555225e-05, "loss": 1.4354, "step": 62 }, { "epoch": 0.17573221757322174, "grad_norm": 1.5984564978735487, "learning_rate": 1.994777921806989e-05, "loss": 1.5493, "step": 63 }, { "epoch": 0.17852161785216178, "grad_norm": 1.5396475514798837, "learning_rate": 1.9942928603389366e-05, "loss": 1.4095, "step": 64 }, { "epoch": 0.18131101813110181, "grad_norm": 1.381818615640278, "learning_rate": 1.9937863245275303e-05, "loss": 1.381, "step": 65 }, { "epoch": 0.18410041841004185, "grad_norm": 1.3411933307262995, "learning_rate": 1.9932583253127302e-05, "loss": 1.4514, "step": 66 }, { "epoch": 0.18688981868898186, "grad_norm": 1.4666636741675445, "learning_rate": 1.992708874098054e-05, "loss": 1.378, "step": 67 }, { "epoch": 0.1896792189679219, "grad_norm": 1.321297415086869, "learning_rate": 1.9921379827503316e-05, "loss": 1.3916, "step": 68 }, { "epoch": 0.19246861924686193, "grad_norm": 1.3031514888132292, "learning_rate": 1.991545663599448e-05, "loss": 1.3568, "step": 69 }, { "epoch": 0.19525801952580196, "grad_norm": 1.3252501098302665, "learning_rate": 1.990931929438078e-05, "loss": 1.3691, "step": 70 }, { "epoch": 0.19804741980474197, "grad_norm": 1.3190300203004819, "learning_rate": 1.990296793521408e-05, "loss": 1.425, "step": 71 }, { "epoch": 0.200836820083682, "grad_norm": 1.221728638105595, "learning_rate": 1.989640269566853e-05, "loss": 1.3669, "step": 72 }, { "epoch": 0.20362622036262204, "grad_norm": 1.2519446160682244, "learning_rate": 1.9889623717537564e-05, "loss": 1.5065, "step": 73 }, { "epoch": 0.20641562064156208, "grad_norm": 1.3192555240060455, "learning_rate": 1.9882631147230874e-05, "loss": 1.3077, "step": 74 }, { "epoch": 0.20920502092050208, "grad_norm": 1.811281511932427, "learning_rate": 1.987542513577122e-05, "loss": 1.4737, "step": 75 }, { "epoch": 0.21199442119944212, "grad_norm": 1.2107466822843787, "learning_rate": 1.9868005838791185e-05, "loss": 1.3632, "step": 76 }, { "epoch": 0.21478382147838215, "grad_norm": 1.4506886695952612, "learning_rate": 1.9860373416529804e-05, "loss": 1.3707, "step": 77 }, { "epoch": 0.2175732217573222, "grad_norm": 1.129475911714987, "learning_rate": 1.985252803382911e-05, "loss": 1.2879, "step": 78 }, { "epoch": 0.2203626220362622, "grad_norm": 1.2378410441125478, "learning_rate": 1.984446986013057e-05, "loss": 1.4352, "step": 79 }, { "epoch": 0.22315202231520223, "grad_norm": 1.2497274548196218, "learning_rate": 1.983619906947144e-05, "loss": 1.2929, "step": 80 }, { "epoch": 0.22594142259414227, "grad_norm": 1.2860272115066647, "learning_rate": 1.9827715840480962e-05, "loss": 1.2595, "step": 81 }, { "epoch": 0.22873082287308227, "grad_norm": 1.3259601590310435, "learning_rate": 1.9819020356376562e-05, "loss": 1.5421, "step": 82 }, { "epoch": 0.2315202231520223, "grad_norm": 1.3823289295025785, "learning_rate": 1.9810112804959867e-05, "loss": 1.4379, "step": 83 }, { "epoch": 0.23430962343096234, "grad_norm": 1.2790636696723037, "learning_rate": 1.980099337861264e-05, "loss": 1.4045, "step": 84 }, { "epoch": 0.23709902370990238, "grad_norm": 1.2621634213682735, "learning_rate": 1.9791662274292638e-05, "loss": 1.3433, "step": 85 }, { "epoch": 0.2398884239888424, "grad_norm": 1.4041226411604562, "learning_rate": 1.9782119693529358e-05, "loss": 1.6292, "step": 86 }, { "epoch": 0.24267782426778242, "grad_norm": 1.4238393471976662, "learning_rate": 1.977236584241968e-05, "loss": 1.398, "step": 87 }, { "epoch": 0.24546722454672246, "grad_norm": 1.3721757997449184, "learning_rate": 1.9762400931623413e-05, "loss": 1.372, "step": 88 }, { "epoch": 0.2482566248256625, "grad_norm": 1.3049726438204359, "learning_rate": 1.9752225176358757e-05, "loss": 1.4366, "step": 89 }, { "epoch": 0.2510460251046025, "grad_norm": 1.319316702022308, "learning_rate": 1.9741838796397638e-05, "loss": 1.2807, "step": 90 }, { "epoch": 0.2510460251046025, "eval_loss": 1.6544907093048096, "eval_runtime": 157.4295, "eval_samples_per_second": 2.02, "eval_steps_per_second": 0.127, "step": 90 }, { "epoch": 0.25383542538354253, "grad_norm": 1.3259568867589984, "learning_rate": 1.9731242016060985e-05, "loss": 1.3566, "step": 91 }, { "epoch": 0.25662482566248257, "grad_norm": 1.3318698765554446, "learning_rate": 1.972043506421386e-05, "loss": 1.3304, "step": 92 }, { "epoch": 0.2594142259414226, "grad_norm": 1.210762982291795, "learning_rate": 1.9709418174260523e-05, "loss": 1.3663, "step": 93 }, { "epoch": 0.26220362622036264, "grad_norm": 1.322366639833671, "learning_rate": 1.9698191584139402e-05, "loss": 1.4099, "step": 94 }, { "epoch": 0.2649930264993027, "grad_norm": 1.286954377653034, "learning_rate": 1.9686755536317945e-05, "loss": 1.3539, "step": 95 }, { "epoch": 0.26778242677824265, "grad_norm": 1.1590651579123286, "learning_rate": 1.967511027778738e-05, "loss": 1.2147, "step": 96 }, { "epoch": 0.2705718270571827, "grad_norm": 1.3100829080105303, "learning_rate": 1.9663256060057395e-05, "loss": 1.4093, "step": 97 }, { "epoch": 0.2733612273361227, "grad_norm": 1.346265752760783, "learning_rate": 1.965119313915068e-05, "loss": 1.491, "step": 98 }, { "epoch": 0.27615062761506276, "grad_norm": 1.378168477135006, "learning_rate": 1.9638921775597428e-05, "loss": 1.5049, "step": 99 }, { "epoch": 0.2789400278940028, "grad_norm": 1.4182107155054933, "learning_rate": 1.9626442234429684e-05, "loss": 1.5013, "step": 100 }, { "epoch": 0.28172942817294283, "grad_norm": 1.3165711654218712, "learning_rate": 1.961375478517564e-05, "loss": 1.5105, "step": 101 }, { "epoch": 0.28451882845188287, "grad_norm": 1.364780296172199, "learning_rate": 1.9600859701853796e-05, "loss": 1.5207, "step": 102 }, { "epoch": 0.28730822873082285, "grad_norm": 1.2988922679076684, "learning_rate": 1.958775726296706e-05, "loss": 1.2881, "step": 103 }, { "epoch": 0.2900976290097629, "grad_norm": 1.3450528168801636, "learning_rate": 1.9574447751496706e-05, "loss": 1.2877, "step": 104 }, { "epoch": 0.2928870292887029, "grad_norm": 1.4142239844479165, "learning_rate": 1.95609314548963e-05, "loss": 1.5604, "step": 105 }, { "epoch": 0.29567642956764295, "grad_norm": 1.3452993293539794, "learning_rate": 1.954720866508546e-05, "loss": 1.3447, "step": 106 }, { "epoch": 0.298465829846583, "grad_norm": 1.4534491830895881, "learning_rate": 1.953327967844356e-05, "loss": 1.3643, "step": 107 }, { "epoch": 0.301255230125523, "grad_norm": 1.350966370835706, "learning_rate": 1.9519144795803342e-05, "loss": 1.5196, "step": 108 }, { "epoch": 0.30404463040446306, "grad_norm": 1.3487778511447879, "learning_rate": 1.95048043224444e-05, "loss": 1.4243, "step": 109 }, { "epoch": 0.3068340306834031, "grad_norm": 1.3479508491141639, "learning_rate": 1.94902585680866e-05, "loss": 1.2869, "step": 110 }, { "epoch": 0.30962343096234307, "grad_norm": 1.5555627133101146, "learning_rate": 1.9475507846883377e-05, "loss": 1.4626, "step": 111 }, { "epoch": 0.3124128312412831, "grad_norm": 1.264890715784298, "learning_rate": 1.9460552477414972e-05, "loss": 1.2826, "step": 112 }, { "epoch": 0.31520223152022314, "grad_norm": 1.2628748380778831, "learning_rate": 1.9445392782681523e-05, "loss": 1.232, "step": 113 }, { "epoch": 0.3179916317991632, "grad_norm": 1.3550404859387195, "learning_rate": 1.9430029090096118e-05, "loss": 1.3034, "step": 114 }, { "epoch": 0.3207810320781032, "grad_norm": 1.1496127251687267, "learning_rate": 1.94144617314777e-05, "loss": 1.3215, "step": 115 }, { "epoch": 0.32357043235704325, "grad_norm": 1.3116085375581363, "learning_rate": 1.939869104304392e-05, "loss": 1.4154, "step": 116 }, { "epoch": 0.3263598326359833, "grad_norm": 1.2589366985022925, "learning_rate": 1.9382717365403854e-05, "loss": 1.517, "step": 117 }, { "epoch": 0.3291492329149233, "grad_norm": 1.3051575397158521, "learning_rate": 1.9366541043550667e-05, "loss": 1.3795, "step": 118 }, { "epoch": 0.3319386331938633, "grad_norm": 1.514184766493585, "learning_rate": 1.9350162426854152e-05, "loss": 1.5974, "step": 119 }, { "epoch": 0.33472803347280333, "grad_norm": 1.3773144705212048, "learning_rate": 1.933358186905318e-05, "loss": 1.3696, "step": 120 }, { "epoch": 0.33751743375174337, "grad_norm": 1.070700275666401, "learning_rate": 1.9316799728248074e-05, "loss": 1.1661, "step": 121 }, { "epoch": 0.3403068340306834, "grad_norm": 1.4181760004495874, "learning_rate": 1.9299816366892865e-05, "loss": 1.4376, "step": 122 }, { "epoch": 0.34309623430962344, "grad_norm": 1.6034791315185046, "learning_rate": 1.9282632151787462e-05, "loss": 1.5891, "step": 123 }, { "epoch": 0.3458856345885635, "grad_norm": 1.1884570183288778, "learning_rate": 1.9265247454069736e-05, "loss": 1.3432, "step": 124 }, { "epoch": 0.3486750348675035, "grad_norm": 1.477555714731358, "learning_rate": 1.924766264920751e-05, "loss": 1.3683, "step": 125 }, { "epoch": 0.3514644351464435, "grad_norm": 1.2504857458807423, "learning_rate": 1.922987811699042e-05, "loss": 1.2643, "step": 126 }, { "epoch": 0.3542538354253835, "grad_norm": 1.3679090790056112, "learning_rate": 1.9211894241521757e-05, "loss": 1.5962, "step": 127 }, { "epoch": 0.35704323570432356, "grad_norm": 1.2309836816544464, "learning_rate": 1.9193711411210138e-05, "loss": 1.3361, "step": 128 }, { "epoch": 0.3598326359832636, "grad_norm": 1.1714321663378802, "learning_rate": 1.917533001876113e-05, "loss": 1.3019, "step": 129 }, { "epoch": 0.36262203626220363, "grad_norm": 1.2813447334304535, "learning_rate": 1.9156750461168768e-05, "loss": 1.4319, "step": 130 }, { "epoch": 0.36541143654114366, "grad_norm": 1.427767209588848, "learning_rate": 1.9137973139706973e-05, "loss": 1.4712, "step": 131 }, { "epoch": 0.3682008368200837, "grad_norm": 1.3426640935974619, "learning_rate": 1.91189984599209e-05, "loss": 1.4397, "step": 132 }, { "epoch": 0.37099023709902373, "grad_norm": 1.3173830250699687, "learning_rate": 1.9099826831618168e-05, "loss": 1.4799, "step": 133 }, { "epoch": 0.3737796373779637, "grad_norm": 1.5260053920559482, "learning_rate": 1.908045866886001e-05, "loss": 1.5167, "step": 134 }, { "epoch": 0.37656903765690375, "grad_norm": 1.2838799058228236, "learning_rate": 1.9060894389952328e-05, "loss": 1.3957, "step": 135 }, { "epoch": 0.37656903765690375, "eval_loss": 1.629968523979187, "eval_runtime": 155.8796, "eval_samples_per_second": 2.04, "eval_steps_per_second": 0.128, "step": 135 }, { "epoch": 0.3793584379358438, "grad_norm": 1.2595723963522658, "learning_rate": 1.9041134417436674e-05, "loss": 1.3773, "step": 136 }, { "epoch": 0.3821478382147838, "grad_norm": 1.380977078216302, "learning_rate": 1.9021179178081107e-05, "loss": 1.5358, "step": 137 }, { "epoch": 0.38493723849372385, "grad_norm": 1.3245015694120374, "learning_rate": 1.9001029102870982e-05, "loss": 1.506, "step": 138 }, { "epoch": 0.3877266387726639, "grad_norm": 1.2602456347612, "learning_rate": 1.898068462699964e-05, "loss": 1.4246, "step": 139 }, { "epoch": 0.3905160390516039, "grad_norm": 1.3989105118625398, "learning_rate": 1.8960146189859014e-05, "loss": 1.4692, "step": 140 }, { "epoch": 0.39330543933054396, "grad_norm": 1.2616111800783727, "learning_rate": 1.8939414235030137e-05, "loss": 1.3755, "step": 141 }, { "epoch": 0.39609483960948394, "grad_norm": 1.2686523296470786, "learning_rate": 1.891848921027355e-05, "loss": 1.3442, "step": 142 }, { "epoch": 0.398884239888424, "grad_norm": 1.37417212405681, "learning_rate": 1.889737156751965e-05, "loss": 1.3651, "step": 143 }, { "epoch": 0.401673640167364, "grad_norm": 1.373244156828418, "learning_rate": 1.887606176285893e-05, "loss": 1.4961, "step": 144 }, { "epoch": 0.40446304044630405, "grad_norm": 1.1872961109156253, "learning_rate": 1.8854560256532098e-05, "loss": 1.2587, "step": 145 }, { "epoch": 0.4072524407252441, "grad_norm": 1.313036403643509, "learning_rate": 1.883286751292018e-05, "loss": 1.4575, "step": 146 }, { "epoch": 0.4100418410041841, "grad_norm": 1.390974479025736, "learning_rate": 1.8810984000534457e-05, "loss": 1.3891, "step": 147 }, { "epoch": 0.41283124128312415, "grad_norm": 1.3368020257438076, "learning_rate": 1.8788910192006363e-05, "loss": 1.3415, "step": 148 }, { "epoch": 0.41562064156206413, "grad_norm": 1.2329515511987332, "learning_rate": 1.8766646564077265e-05, "loss": 1.3339, "step": 149 }, { "epoch": 0.41841004184100417, "grad_norm": 1.276208090352136, "learning_rate": 1.8744193597588185e-05, "loss": 1.4495, "step": 150 }, { "epoch": 0.4211994421199442, "grad_norm": 1.1548092334953926, "learning_rate": 1.8721551777469397e-05, "loss": 1.2099, "step": 151 }, { "epoch": 0.42398884239888424, "grad_norm": 1.3184986062317001, "learning_rate": 1.869872159272997e-05, "loss": 1.2136, "step": 152 }, { "epoch": 0.42677824267782427, "grad_norm": 1.1962726760049636, "learning_rate": 1.8675703536447178e-05, "loss": 1.2598, "step": 153 }, { "epoch": 0.4295676429567643, "grad_norm": 1.3302312487017707, "learning_rate": 1.8652498105755898e-05, "loss": 1.3719, "step": 154 }, { "epoch": 0.43235704323570434, "grad_norm": 1.55872330252289, "learning_rate": 1.862910580183782e-05, "loss": 1.4867, "step": 155 }, { "epoch": 0.4351464435146444, "grad_norm": 1.3004017172912832, "learning_rate": 1.8605527129910663e-05, "loss": 1.3089, "step": 156 }, { "epoch": 0.43793584379358436, "grad_norm": 1.2650294480346138, "learning_rate": 1.858176259921724e-05, "loss": 1.2856, "step": 157 }, { "epoch": 0.4407252440725244, "grad_norm": 1.414189467122214, "learning_rate": 1.8557812723014476e-05, "loss": 1.4827, "step": 158 }, { "epoch": 0.4435146443514644, "grad_norm": 1.2634959665686347, "learning_rate": 1.853367801856231e-05, "loss": 1.3568, "step": 159 }, { "epoch": 0.44630404463040446, "grad_norm": 1.3164047095667806, "learning_rate": 1.8509359007112523e-05, "loss": 1.5306, "step": 160 }, { "epoch": 0.4490934449093445, "grad_norm": 1.3232600329575266, "learning_rate": 1.8484856213897496e-05, "loss": 1.4279, "step": 161 }, { "epoch": 0.45188284518828453, "grad_norm": 1.286194256752095, "learning_rate": 1.8460170168118857e-05, "loss": 1.2656, "step": 162 }, { "epoch": 0.45467224546722457, "grad_norm": 1.393553888811773, "learning_rate": 1.843530140293603e-05, "loss": 1.4003, "step": 163 }, { "epoch": 0.45746164574616455, "grad_norm": 1.2952418440030533, "learning_rate": 1.841025045545477e-05, "loss": 1.365, "step": 164 }, { "epoch": 0.4602510460251046, "grad_norm": 1.2556167978994803, "learning_rate": 1.8385017866715507e-05, "loss": 1.3313, "step": 165 }, { "epoch": 0.4630404463040446, "grad_norm": 1.3067564204278406, "learning_rate": 1.8359604181681703e-05, "loss": 1.4114, "step": 166 }, { "epoch": 0.46582984658298465, "grad_norm": 1.2088590174928828, "learning_rate": 1.833400994922806e-05, "loss": 1.1866, "step": 167 }, { "epoch": 0.4686192468619247, "grad_norm": 1.334753865529686, "learning_rate": 1.8308235722128674e-05, "loss": 1.2744, "step": 168 }, { "epoch": 0.4714086471408647, "grad_norm": 1.3612556693462265, "learning_rate": 1.8282282057045087e-05, "loss": 1.3558, "step": 169 }, { "epoch": 0.47419804741980476, "grad_norm": 1.2660924285869366, "learning_rate": 1.8256149514514284e-05, "loss": 1.2804, "step": 170 }, { "epoch": 0.4769874476987448, "grad_norm": 1.3192403133250346, "learning_rate": 1.8229838658936566e-05, "loss": 1.3874, "step": 171 }, { "epoch": 0.4797768479776848, "grad_norm": 1.3924722985838183, "learning_rate": 1.8203350058563366e-05, "loss": 1.5013, "step": 172 }, { "epoch": 0.4825662482566248, "grad_norm": 1.2874077296032287, "learning_rate": 1.8176684285484985e-05, "loss": 1.3261, "step": 173 }, { "epoch": 0.48535564853556484, "grad_norm": 1.309597924994118, "learning_rate": 1.814984191561823e-05, "loss": 1.4157, "step": 174 }, { "epoch": 0.4881450488145049, "grad_norm": 1.1912282212302885, "learning_rate": 1.8122823528693966e-05, "loss": 1.2585, "step": 175 }, { "epoch": 0.4909344490934449, "grad_norm": 1.2765007106705224, "learning_rate": 1.809562970824462e-05, "loss": 1.3437, "step": 176 }, { "epoch": 0.49372384937238495, "grad_norm": 1.2571675750543854, "learning_rate": 1.8068261041591548e-05, "loss": 1.4383, "step": 177 }, { "epoch": 0.496513249651325, "grad_norm": 1.1735759325774886, "learning_rate": 1.8040718119832378e-05, "loss": 1.3234, "step": 178 }, { "epoch": 0.499302649930265, "grad_norm": 1.1634243266804525, "learning_rate": 1.8013001537828213e-05, "loss": 1.2169, "step": 179 }, { "epoch": 0.502092050209205, "grad_norm": 1.2251535095230563, "learning_rate": 1.7985111894190827e-05, "loss": 1.2727, "step": 180 }, { "epoch": 0.502092050209205, "eval_loss": 1.6175622940063477, "eval_runtime": 183.4681, "eval_samples_per_second": 1.733, "eval_steps_per_second": 0.109, "step": 180 }, { "epoch": 0.504881450488145, "grad_norm": 1.2927502437198448, "learning_rate": 1.7957049791269684e-05, "loss": 1.3752, "step": 181 }, { "epoch": 0.5076708507670851, "grad_norm": 1.2697109314581512, "learning_rate": 1.7928815835138976e-05, "loss": 1.502, "step": 182 }, { "epoch": 0.5104602510460251, "grad_norm": 1.3004080082594036, "learning_rate": 1.79004106355845e-05, "loss": 1.49, "step": 183 }, { "epoch": 0.5132496513249651, "grad_norm": 1.2620161230293547, "learning_rate": 1.7871834806090502e-05, "loss": 1.258, "step": 184 }, { "epoch": 0.5160390516039052, "grad_norm": 1.2238216229925647, "learning_rate": 1.7843088963826437e-05, "loss": 1.2829, "step": 185 }, { "epoch": 0.5188284518828452, "grad_norm": 1.2320397894400665, "learning_rate": 1.7814173729633607e-05, "loss": 1.2767, "step": 186 }, { "epoch": 0.5216178521617852, "grad_norm": 1.3637977851134857, "learning_rate": 1.7785089728011798e-05, "loss": 1.3635, "step": 187 }, { "epoch": 0.5244072524407253, "grad_norm": 1.2685139570979558, "learning_rate": 1.775583758710575e-05, "loss": 1.4145, "step": 188 }, { "epoch": 0.5271966527196653, "grad_norm": 1.3355216229358506, "learning_rate": 1.772641793869162e-05, "loss": 1.3068, "step": 189 }, { "epoch": 0.5299860529986054, "grad_norm": 1.3597618241983527, "learning_rate": 1.7696831418163318e-05, "loss": 1.4446, "step": 190 }, { "epoch": 0.5327754532775453, "grad_norm": 1.2542157271291101, "learning_rate": 1.7667078664518796e-05, "loss": 1.4184, "step": 191 }, { "epoch": 0.5355648535564853, "grad_norm": 1.3244864911198961, "learning_rate": 1.763716032034624e-05, "loss": 1.3889, "step": 192 }, { "epoch": 0.5383542538354253, "grad_norm": 1.261772883234437, "learning_rate": 1.7607077031810204e-05, "loss": 1.343, "step": 193 }, { "epoch": 0.5411436541143654, "grad_norm": 1.404601026428458, "learning_rate": 1.7576829448637628e-05, "loss": 1.4606, "step": 194 }, { "epoch": 0.5439330543933054, "grad_norm": 1.3091211707895143, "learning_rate": 1.7546418224103838e-05, "loss": 1.2931, "step": 195 }, { "epoch": 0.5467224546722455, "grad_norm": 1.2631117467582635, "learning_rate": 1.7515844015018416e-05, "loss": 1.2999, "step": 196 }, { "epoch": 0.5495118549511855, "grad_norm": 1.4560900819743723, "learning_rate": 1.7485107481711014e-05, "loss": 1.5475, "step": 197 }, { "epoch": 0.5523012552301255, "grad_norm": 1.4468059745173558, "learning_rate": 1.7454209288017105e-05, "loss": 1.4191, "step": 198 }, { "epoch": 0.5550906555090656, "grad_norm": 1.315266510590906, "learning_rate": 1.7423150101263645e-05, "loss": 1.4005, "step": 199 }, { "epoch": 0.5578800557880056, "grad_norm": 1.474348076413936, "learning_rate": 1.7391930592254636e-05, "loss": 1.3192, "step": 200 }, { "epoch": 0.5606694560669456, "grad_norm": 1.3652476074142217, "learning_rate": 1.7360551435256673e-05, "loss": 1.2574, "step": 201 }, { "epoch": 0.5634588563458857, "grad_norm": 1.3798373173542198, "learning_rate": 1.7329013307984363e-05, "loss": 1.3117, "step": 202 }, { "epoch": 0.5662482566248257, "grad_norm": 1.209790296025406, "learning_rate": 1.729731689158568e-05, "loss": 1.3107, "step": 203 }, { "epoch": 0.5690376569037657, "grad_norm": 1.1868593994582228, "learning_rate": 1.726546287062727e-05, "loss": 1.2752, "step": 204 }, { "epoch": 0.5718270571827058, "grad_norm": 1.3235161134829174, "learning_rate": 1.7233451933079663e-05, "loss": 1.3399, "step": 205 }, { "epoch": 0.5746164574616457, "grad_norm": 1.353859989844425, "learning_rate": 1.720128477030241e-05, "loss": 1.3181, "step": 206 }, { "epoch": 0.5774058577405857, "grad_norm": 1.3778332664676014, "learning_rate": 1.7168962077029146e-05, "loss": 1.372, "step": 207 }, { "epoch": 0.5801952580195258, "grad_norm": 1.3065213179222184, "learning_rate": 1.7136484551352608e-05, "loss": 1.2717, "step": 208 }, { "epoch": 0.5829846582984658, "grad_norm": 1.3461935265014031, "learning_rate": 1.7103852894709517e-05, "loss": 1.3716, "step": 209 }, { "epoch": 0.5857740585774058, "grad_norm": 1.5238199082532498, "learning_rate": 1.7071067811865477e-05, "loss": 1.4732, "step": 210 }, { "epoch": 0.5885634588563459, "grad_norm": 1.2661008215508678, "learning_rate": 1.7038130010899716e-05, "loss": 1.3884, "step": 211 }, { "epoch": 0.5913528591352859, "grad_norm": 1.3340050909328596, "learning_rate": 1.7005040203189818e-05, "loss": 1.3851, "step": 212 }, { "epoch": 0.5941422594142259, "grad_norm": 1.2956837583785732, "learning_rate": 1.6971799103396332e-05, "loss": 1.4221, "step": 213 }, { "epoch": 0.596931659693166, "grad_norm": 1.1561140429998333, "learning_rate": 1.693840742944738e-05, "loss": 1.2218, "step": 214 }, { "epoch": 0.599721059972106, "grad_norm": 1.313764720344347, "learning_rate": 1.6904865902523098e-05, "loss": 1.264, "step": 215 }, { "epoch": 0.602510460251046, "grad_norm": 1.3302384495066342, "learning_rate": 1.68711752470401e-05, "loss": 1.2776, "step": 216 }, { "epoch": 0.6052998605299861, "grad_norm": 1.2191909895274562, "learning_rate": 1.6837336190635824e-05, "loss": 1.3539, "step": 217 }, { "epoch": 0.6080892608089261, "grad_norm": 1.3373684634352505, "learning_rate": 1.6803349464152798e-05, "loss": 1.4503, "step": 218 }, { "epoch": 0.6108786610878661, "grad_norm": 1.363619941169918, "learning_rate": 1.6769215801622884e-05, "loss": 1.5192, "step": 219 }, { "epoch": 0.6136680613668062, "grad_norm": 1.4606054239168875, "learning_rate": 1.6734935940251404e-05, "loss": 1.5595, "step": 220 }, { "epoch": 0.6164574616457462, "grad_norm": 1.231599938466119, "learning_rate": 1.6700510620401223e-05, "loss": 1.2604, "step": 221 }, { "epoch": 0.6192468619246861, "grad_norm": 1.5101877585841448, "learning_rate": 1.666594058557677e-05, "loss": 1.4834, "step": 222 }, { "epoch": 0.6220362622036262, "grad_norm": 1.39399625488815, "learning_rate": 1.6631226582407954e-05, "loss": 1.3877, "step": 223 }, { "epoch": 0.6248256624825662, "grad_norm": 1.453409874433298, "learning_rate": 1.659636936063407e-05, "loss": 1.5218, "step": 224 }, { "epoch": 0.6276150627615062, "grad_norm": 1.2538819898580684, "learning_rate": 1.6561369673087588e-05, "loss": 1.2438, "step": 225 }, { "epoch": 0.6276150627615062, "eval_loss": 1.6073960065841675, "eval_runtime": 160.2272, "eval_samples_per_second": 1.985, "eval_steps_per_second": 0.125, "step": 225 }, { "epoch": 0.6304044630404463, "grad_norm": 1.5406663292943368, "learning_rate": 1.6526228275677892e-05, "loss": 1.4646, "step": 226 }, { "epoch": 0.6331938633193863, "grad_norm": 1.2629740380853072, "learning_rate": 1.649094592737497e-05, "loss": 1.3459, "step": 227 }, { "epoch": 0.6359832635983264, "grad_norm": 1.302608797313638, "learning_rate": 1.6455523390193e-05, "loss": 1.2689, "step": 228 }, { "epoch": 0.6387726638772664, "grad_norm": 1.1773849504199476, "learning_rate": 1.641996142917391e-05, "loss": 1.2342, "step": 229 }, { "epoch": 0.6415620641562064, "grad_norm": 1.3493891917660983, "learning_rate": 1.638426081237085e-05, "loss": 1.2569, "step": 230 }, { "epoch": 0.6443514644351465, "grad_norm": 1.388250997836812, "learning_rate": 1.63484223108316e-05, "loss": 1.3979, "step": 231 }, { "epoch": 0.6471408647140865, "grad_norm": 1.1928671464502947, "learning_rate": 1.6312446698581915e-05, "loss": 1.23, "step": 232 }, { "epoch": 0.6499302649930265, "grad_norm": 1.2633309780727078, "learning_rate": 1.6276334752608823e-05, "loss": 1.4891, "step": 233 }, { "epoch": 0.6527196652719666, "grad_norm": 1.304711639719216, "learning_rate": 1.624008725284383e-05, "loss": 1.3034, "step": 234 }, { "epoch": 0.6555090655509066, "grad_norm": 1.2217261096543481, "learning_rate": 1.6203704982146073e-05, "loss": 1.2068, "step": 235 }, { "epoch": 0.6582984658298466, "grad_norm": 1.288441898801668, "learning_rate": 1.6167188726285433e-05, "loss": 1.2461, "step": 236 }, { "epoch": 0.6610878661087866, "grad_norm": 1.590492811559281, "learning_rate": 1.613053927392553e-05, "loss": 1.5137, "step": 237 }, { "epoch": 0.6638772663877266, "grad_norm": 1.2477326342958976, "learning_rate": 1.6093757416606725e-05, "loss": 1.3189, "step": 238 }, { "epoch": 0.6666666666666666, "grad_norm": 1.2127950915475818, "learning_rate": 1.6056843948729e-05, "loss": 1.2682, "step": 239 }, { "epoch": 0.6694560669456067, "grad_norm": 1.4271242774536947, "learning_rate": 1.6019799667534813e-05, "loss": 1.5004, "step": 240 }, { "epoch": 0.6722454672245467, "grad_norm": 1.3666477545942404, "learning_rate": 1.5982625373091877e-05, "loss": 1.5493, "step": 241 }, { "epoch": 0.6750348675034867, "grad_norm": 1.1483091382024733, "learning_rate": 1.594532186827588e-05, "loss": 1.3191, "step": 242 }, { "epoch": 0.6778242677824268, "grad_norm": 3.1947518624580136, "learning_rate": 1.5907889958753134e-05, "loss": 1.3046, "step": 243 }, { "epoch": 0.6806136680613668, "grad_norm": 1.3099413581809563, "learning_rate": 1.5870330452963206e-05, "loss": 1.2706, "step": 244 }, { "epoch": 0.6834030683403068, "grad_norm": 1.461185290486486, "learning_rate": 1.5832644162101417e-05, "loss": 1.4886, "step": 245 }, { "epoch": 0.6861924686192469, "grad_norm": 1.2442836680144551, "learning_rate": 1.5794831900101352e-05, "loss": 1.27, "step": 246 }, { "epoch": 0.6889818688981869, "grad_norm": 1.248119979843789, "learning_rate": 1.5756894483617268e-05, "loss": 1.2831, "step": 247 }, { "epoch": 0.691771269177127, "grad_norm": 1.3703323165735684, "learning_rate": 1.571883273200646e-05, "loss": 1.5584, "step": 248 }, { "epoch": 0.694560669456067, "grad_norm": 1.3183958125038406, "learning_rate": 1.568064746731156e-05, "loss": 1.5037, "step": 249 }, { "epoch": 0.697350069735007, "grad_norm": 1.1844817674941481, "learning_rate": 1.564233951424279e-05, "loss": 1.4209, "step": 250 }, { "epoch": 0.700139470013947, "grad_norm": 1.5190227626319008, "learning_rate": 1.560390970016015e-05, "loss": 1.4738, "step": 251 }, { "epoch": 0.702928870292887, "grad_norm": 1.2922540957047237, "learning_rate": 1.5565358855055535e-05, "loss": 1.4749, "step": 252 }, { "epoch": 0.705718270571827, "grad_norm": 1.2755003379456324, "learning_rate": 1.552668781153484e-05, "loss": 1.3514, "step": 253 }, { "epoch": 0.708507670850767, "grad_norm": 1.333525201907311, "learning_rate": 1.5487897404799932e-05, "loss": 1.4833, "step": 254 }, { "epoch": 0.7112970711297071, "grad_norm": 1.2366281388101243, "learning_rate": 1.5448988472630654e-05, "loss": 1.3055, "step": 255 }, { "epoch": 0.7140864714086471, "grad_norm": 1.2656677555514606, "learning_rate": 1.5409961855366718e-05, "loss": 1.2858, "step": 256 }, { "epoch": 0.7168758716875872, "grad_norm": 1.3893320030810534, "learning_rate": 1.5370818395889536e-05, "loss": 1.2958, "step": 257 }, { "epoch": 0.7196652719665272, "grad_norm": 1.2262571768039963, "learning_rate": 1.533155893960405e-05, "loss": 1.3797, "step": 258 }, { "epoch": 0.7224546722454672, "grad_norm": 1.3752885859305817, "learning_rate": 1.5292184334420434e-05, "loss": 1.5324, "step": 259 }, { "epoch": 0.7252440725244073, "grad_norm": 1.349973458041763, "learning_rate": 1.5252695430735824e-05, "loss": 1.3828, "step": 260 }, { "epoch": 0.7280334728033473, "grad_norm": 1.214154217005644, "learning_rate": 1.521309308141592e-05, "loss": 1.3081, "step": 261 }, { "epoch": 0.7308228730822873, "grad_norm": 1.2681774984772773, "learning_rate": 1.5173378141776569e-05, "loss": 1.5341, "step": 262 }, { "epoch": 0.7336122733612274, "grad_norm": 1.2265782510592125, "learning_rate": 1.5133551469565313e-05, "loss": 1.2877, "step": 263 }, { "epoch": 0.7364016736401674, "grad_norm": 1.2084693848644321, "learning_rate": 1.5093613924942837e-05, "loss": 1.3773, "step": 264 }, { "epoch": 0.7391910739191074, "grad_norm": 1.1437825395668497, "learning_rate": 1.5053566370464416e-05, "loss": 1.2808, "step": 265 }, { "epoch": 0.7419804741980475, "grad_norm": 1.3197967431830404, "learning_rate": 1.5013409671061267e-05, "loss": 1.289, "step": 266 }, { "epoch": 0.7447698744769874, "grad_norm": 1.382635793553147, "learning_rate": 1.4973144694021874e-05, "loss": 1.2638, "step": 267 }, { "epoch": 0.7475592747559274, "grad_norm": 1.3988324864350785, "learning_rate": 1.4932772308973267e-05, "loss": 1.3403, "step": 268 }, { "epoch": 0.7503486750348675, "grad_norm": 1.2731407752985473, "learning_rate": 1.4892293387862221e-05, "loss": 1.3312, "step": 269 }, { "epoch": 0.7531380753138075, "grad_norm": 1.1572040227672067, "learning_rate": 1.4851708804936449e-05, "loss": 1.3147, "step": 270 }, { "epoch": 0.7531380753138075, "eval_loss": 1.5958304405212402, "eval_runtime": 158.3728, "eval_samples_per_second": 2.008, "eval_steps_per_second": 0.126, "step": 270 }, { "epoch": 0.7559274755927475, "grad_norm": 1.3990082254921117, "learning_rate": 1.4811019436725684e-05, "loss": 1.3162, "step": 271 }, { "epoch": 0.7587168758716876, "grad_norm": 1.2418130090749915, "learning_rate": 1.4770226162022799e-05, "loss": 1.2594, "step": 272 }, { "epoch": 0.7615062761506276, "grad_norm": 1.1503772215035513, "learning_rate": 1.472932986186477e-05, "loss": 1.2827, "step": 273 }, { "epoch": 0.7642956764295676, "grad_norm": 1.459940130878171, "learning_rate": 1.4688331419513693e-05, "loss": 1.3126, "step": 274 }, { "epoch": 0.7670850767085077, "grad_norm": 1.3252355330703371, "learning_rate": 1.4647231720437687e-05, "loss": 1.4367, "step": 275 }, { "epoch": 0.7698744769874477, "grad_norm": 1.4888619740632927, "learning_rate": 1.4606031652291772e-05, "loss": 1.4275, "step": 276 }, { "epoch": 0.7726638772663877, "grad_norm": 1.3069850449838218, "learning_rate": 1.4564732104898702e-05, "loss": 1.3533, "step": 277 }, { "epoch": 0.7754532775453278, "grad_norm": 1.268759058345783, "learning_rate": 1.4523333970229741e-05, "loss": 1.337, "step": 278 }, { "epoch": 0.7782426778242678, "grad_norm": 1.1520224898754043, "learning_rate": 1.4481838142385403e-05, "loss": 1.2454, "step": 279 }, { "epoch": 0.7810320781032078, "grad_norm": 1.3031384394432615, "learning_rate": 1.4440245517576141e-05, "loss": 1.4125, "step": 280 }, { "epoch": 0.7838214783821479, "grad_norm": 1.4528549714436811, "learning_rate": 1.4398556994102996e-05, "loss": 1.3641, "step": 281 }, { "epoch": 0.7866108786610879, "grad_norm": 1.4236584359239257, "learning_rate": 1.4356773472338174e-05, "loss": 1.48, "step": 282 }, { "epoch": 0.7894002789400278, "grad_norm": 1.4626745792933868, "learning_rate": 1.4314895854705641e-05, "loss": 1.4765, "step": 283 }, { "epoch": 0.7921896792189679, "grad_norm": 1.2910417535844496, "learning_rate": 1.4272925045661583e-05, "loss": 1.419, "step": 284 }, { "epoch": 0.7949790794979079, "grad_norm": 1.2373977812672998, "learning_rate": 1.4230861951674914e-05, "loss": 1.2251, "step": 285 }, { "epoch": 0.797768479776848, "grad_norm": 1.2785831952874724, "learning_rate": 1.4188707481207677e-05, "loss": 1.3471, "step": 286 }, { "epoch": 0.800557880055788, "grad_norm": 1.3683445048689633, "learning_rate": 1.4146462544695428e-05, "loss": 1.425, "step": 287 }, { "epoch": 0.803347280334728, "grad_norm": 1.1296732873251845, "learning_rate": 1.410412805452757e-05, "loss": 1.2578, "step": 288 }, { "epoch": 0.806136680613668, "grad_norm": 1.0829712122726374, "learning_rate": 1.4061704925027653e-05, "loss": 1.1799, "step": 289 }, { "epoch": 0.8089260808926081, "grad_norm": 1.3309074955401459, "learning_rate": 1.4019194072433626e-05, "loss": 1.1379, "step": 290 }, { "epoch": 0.8117154811715481, "grad_norm": 1.2343728023741232, "learning_rate": 1.3976596414878044e-05, "loss": 1.2411, "step": 291 }, { "epoch": 0.8145048814504882, "grad_norm": 1.214883458073917, "learning_rate": 1.393391287236824e-05, "loss": 1.3405, "step": 292 }, { "epoch": 0.8172942817294282, "grad_norm": 1.3091690676466778, "learning_rate": 1.3891144366766457e-05, "loss": 1.2606, "step": 293 }, { "epoch": 0.8200836820083682, "grad_norm": 13.631918339692971, "learning_rate": 1.3848291821769944e-05, "loss": 1.656, "step": 294 }, { "epoch": 0.8228730822873083, "grad_norm": 1.1657018881567924, "learning_rate": 1.380535616289099e-05, "loss": 1.2156, "step": 295 }, { "epoch": 0.8256624825662483, "grad_norm": 1.2347632552018992, "learning_rate": 1.3762338317436948e-05, "loss": 1.2669, "step": 296 }, { "epoch": 0.8284518828451883, "grad_norm": 1.4274262176368255, "learning_rate": 1.3719239214490203e-05, "loss": 1.3072, "step": 297 }, { "epoch": 0.8312412831241283, "grad_norm": 1.2894927915175798, "learning_rate": 1.3676059784888112e-05, "loss": 1.4573, "step": 298 }, { "epoch": 0.8340306834030683, "grad_norm": 1.4646947685259242, "learning_rate": 1.363280096120289e-05, "loss": 1.4956, "step": 299 }, { "epoch": 0.8368200836820083, "grad_norm": 1.2835331667441359, "learning_rate": 1.358946367772148e-05, "loss": 1.3713, "step": 300 }, { "epoch": 0.8396094839609484, "grad_norm": 1.3024578071081172, "learning_rate": 1.3546048870425356e-05, "loss": 1.345, "step": 301 }, { "epoch": 0.8423988842398884, "grad_norm": 1.144812031373234, "learning_rate": 1.3502557476970339e-05, "loss": 1.3447, "step": 302 }, { "epoch": 0.8451882845188284, "grad_norm": 1.255722753075089, "learning_rate": 1.3458990436666313e-05, "loss": 1.5169, "step": 303 }, { "epoch": 0.8479776847977685, "grad_norm": 1.1632268233137957, "learning_rate": 1.3415348690456955e-05, "loss": 1.289, "step": 304 }, { "epoch": 0.8507670850767085, "grad_norm": 1.2357758677374722, "learning_rate": 1.3371633180899417e-05, "loss": 1.4063, "step": 305 }, { "epoch": 0.8535564853556485, "grad_norm": 1.2854100609241097, "learning_rate": 1.3327844852143956e-05, "loss": 1.3677, "step": 306 }, { "epoch": 0.8563458856345886, "grad_norm": 1.2395591163738042, "learning_rate": 1.3283984649913552e-05, "loss": 1.3656, "step": 307 }, { "epoch": 0.8591352859135286, "grad_norm": 1.309692041297723, "learning_rate": 1.3240053521483483e-05, "loss": 1.3191, "step": 308 }, { "epoch": 0.8619246861924686, "grad_norm": 1.306594190283498, "learning_rate": 1.3196052415660856e-05, "loss": 1.2964, "step": 309 }, { "epoch": 0.8647140864714087, "grad_norm": 1.2332822767216993, "learning_rate": 1.3151982282764126e-05, "loss": 1.3172, "step": 310 }, { "epoch": 0.8675034867503487, "grad_norm": 1.2248947416069507, "learning_rate": 1.3107844074602566e-05, "loss": 1.2215, "step": 311 }, { "epoch": 0.8702928870292888, "grad_norm": 1.0883399467851869, "learning_rate": 1.3063638744455713e-05, "loss": 1.2487, "step": 312 }, { "epoch": 0.8730822873082287, "grad_norm": 1.3561694142459044, "learning_rate": 1.3019367247052781e-05, "loss": 1.5192, "step": 313 }, { "epoch": 0.8758716875871687, "grad_norm": 1.2195540202949509, "learning_rate": 1.297503053855203e-05, "loss": 1.315, "step": 314 }, { "epoch": 0.8786610878661087, "grad_norm": 1.2398989428685936, "learning_rate": 1.2930629576520133e-05, "loss": 1.2466, "step": 315 }, { "epoch": 0.8786610878661087, "eval_loss": 1.590497612953186, "eval_runtime": 158.7725, "eval_samples_per_second": 2.003, "eval_steps_per_second": 0.126, "step": 315 }, { "epoch": 0.8814504881450488, "grad_norm": 1.1820530696430398, "learning_rate": 1.2886165319911474e-05, "loss": 1.3187, "step": 316 }, { "epoch": 0.8842398884239888, "grad_norm": 1.2411796795161567, "learning_rate": 1.2841638729047463e-05, "loss": 1.3681, "step": 317 }, { "epoch": 0.8870292887029289, "grad_norm": 1.2561131847214293, "learning_rate": 1.2797050765595767e-05, "loss": 1.2601, "step": 318 }, { "epoch": 0.8898186889818689, "grad_norm": 1.415729283991149, "learning_rate": 1.2752402392549556e-05, "loss": 1.4896, "step": 319 }, { "epoch": 0.8926080892608089, "grad_norm": 1.3261631641702796, "learning_rate": 1.2707694574206712e-05, "loss": 1.5607, "step": 320 }, { "epoch": 0.895397489539749, "grad_norm": 1.240314237616232, "learning_rate": 1.2662928276148985e-05, "loss": 1.3429, "step": 321 }, { "epoch": 0.898186889818689, "grad_norm": 1.3000617526029077, "learning_rate": 1.2618104465221148e-05, "loss": 1.4272, "step": 322 }, { "epoch": 0.900976290097629, "grad_norm": 1.16464364915601, "learning_rate": 1.2573224109510112e-05, "loss": 1.2306, "step": 323 }, { "epoch": 0.9037656903765691, "grad_norm": 1.2109886144147917, "learning_rate": 1.2528288178324029e-05, "loss": 1.353, "step": 324 }, { "epoch": 0.9065550906555091, "grad_norm": 1.1714274928342496, "learning_rate": 1.2483297642171332e-05, "loss": 1.2997, "step": 325 }, { "epoch": 0.9093444909344491, "grad_norm": 1.1814072235776383, "learning_rate": 1.2438253472739805e-05, "loss": 1.3144, "step": 326 }, { "epoch": 0.9121338912133892, "grad_norm": 1.3461681399899779, "learning_rate": 1.2393156642875579e-05, "loss": 1.3618, "step": 327 }, { "epoch": 0.9149232914923291, "grad_norm": 1.456924757382429, "learning_rate": 1.234800812656212e-05, "loss": 1.3796, "step": 328 }, { "epoch": 0.9177126917712691, "grad_norm": 1.2321016000046479, "learning_rate": 1.23028088988992e-05, "loss": 1.3771, "step": 329 }, { "epoch": 0.9205020920502092, "grad_norm": 1.2405013760966828, "learning_rate": 1.2257559936081833e-05, "loss": 1.2744, "step": 330 }, { "epoch": 0.9232914923291492, "grad_norm": 1.2677524234506234, "learning_rate": 1.2212262215379199e-05, "loss": 1.3578, "step": 331 }, { "epoch": 0.9260808926080892, "grad_norm": 1.2230537842102542, "learning_rate": 1.2166916715113521e-05, "loss": 1.4323, "step": 332 }, { "epoch": 0.9288702928870293, "grad_norm": 1.2690522272930789, "learning_rate": 1.2121524414638958e-05, "loss": 1.2845, "step": 333 }, { "epoch": 0.9316596931659693, "grad_norm": 1.2822697397851108, "learning_rate": 1.207608629432043e-05, "loss": 1.6128, "step": 334 }, { "epoch": 0.9344490934449093, "grad_norm": 1.2997575387211082, "learning_rate": 1.2030603335512467e-05, "loss": 1.3401, "step": 335 }, { "epoch": 0.9372384937238494, "grad_norm": 1.5059463142396166, "learning_rate": 1.1985076520537995e-05, "loss": 1.2793, "step": 336 }, { "epoch": 0.9400278940027894, "grad_norm": 1.5118948746263785, "learning_rate": 1.1939506832667129e-05, "loss": 1.3152, "step": 337 }, { "epoch": 0.9428172942817294, "grad_norm": 1.2816385360112317, "learning_rate": 1.1893895256095937e-05, "loss": 1.4573, "step": 338 }, { "epoch": 0.9456066945606695, "grad_norm": 1.1973723679649781, "learning_rate": 1.1848242775925188e-05, "loss": 1.1473, "step": 339 }, { "epoch": 0.9483960948396095, "grad_norm": 1.157556800970344, "learning_rate": 1.180255037813906e-05, "loss": 1.362, "step": 340 }, { "epoch": 0.9511854951185496, "grad_norm": 1.3366940604017197, "learning_rate": 1.1756819049583861e-05, "loss": 1.5201, "step": 341 }, { "epoch": 0.9539748953974896, "grad_norm": 1.396951726353029, "learning_rate": 1.1711049777946717e-05, "loss": 1.4882, "step": 342 }, { "epoch": 0.9567642956764296, "grad_norm": 1.1789267346275334, "learning_rate": 1.166524355173422e-05, "loss": 1.3806, "step": 343 }, { "epoch": 0.9595536959553695, "grad_norm": 1.2075413726006268, "learning_rate": 1.1619401360251104e-05, "loss": 1.2451, "step": 344 }, { "epoch": 0.9623430962343096, "grad_norm": 1.2379647427390967, "learning_rate": 1.1573524193578863e-05, "loss": 1.1581, "step": 345 }, { "epoch": 0.9651324965132496, "grad_norm": 1.1953475180567759, "learning_rate": 1.1527613042554368e-05, "loss": 1.3765, "step": 346 }, { "epoch": 0.9679218967921897, "grad_norm": 1.2657967489739972, "learning_rate": 1.1481668898748474e-05, "loss": 1.335, "step": 347 }, { "epoch": 0.9707112970711297, "grad_norm": 1.2590876717921935, "learning_rate": 1.1435692754444604e-05, "loss": 1.339, "step": 348 }, { "epoch": 0.9735006973500697, "grad_norm": 1.3430351369524687, "learning_rate": 1.1389685602617302e-05, "loss": 1.3618, "step": 349 }, { "epoch": 0.9762900976290098, "grad_norm": 1.216928490077423, "learning_rate": 1.134364843691082e-05, "loss": 1.4504, "step": 350 }, { "epoch": 0.9790794979079498, "grad_norm": 1.2961172668976244, "learning_rate": 1.1297582251617618e-05, "loss": 1.3752, "step": 351 }, { "epoch": 0.9818688981868898, "grad_norm": 1.3163958626398011, "learning_rate": 1.1251488041656929e-05, "loss": 1.2906, "step": 352 }, { "epoch": 0.9846582984658299, "grad_norm": 1.2499583055181795, "learning_rate": 1.1205366802553231e-05, "loss": 1.3641, "step": 353 }, { "epoch": 0.9874476987447699, "grad_norm": 1.5088593864499633, "learning_rate": 1.1159219530414786e-05, "loss": 1.4534, "step": 354 }, { "epoch": 0.9902370990237099, "grad_norm": 1.1931538459250062, "learning_rate": 1.1113047221912097e-05, "loss": 1.3285, "step": 355 }, { "epoch": 0.99302649930265, "grad_norm": 1.1763206233025147, "learning_rate": 1.1066850874256387e-05, "loss": 1.3928, "step": 356 }, { "epoch": 0.99581589958159, "grad_norm": 1.2398324928784012, "learning_rate": 1.1020631485178084e-05, "loss": 1.4118, "step": 357 }, { "epoch": 0.99860529986053, "grad_norm": 1.1658511676647905, "learning_rate": 1.0974390052905238e-05, "loss": 1.2735, "step": 358 }, { "epoch": 1.0, "grad_norm": 1.1658511676647905, "learning_rate": 1.0928127576141992e-05, "loss": 0.631, "step": 359 }, { "epoch": 1.00278940027894, "grad_norm": 1.2279956840576842, "learning_rate": 1.0881845054046988e-05, "loss": 1.3144, "step": 360 }, { "epoch": 1.00278940027894, "eval_loss": 1.5843528509140015, "eval_runtime": 158.9441, "eval_samples_per_second": 2.001, "eval_steps_per_second": 0.126, "step": 360 }, { "epoch": 1.00557880055788, "grad_norm": 1.122956387667915, "learning_rate": 1.0835543486211815e-05, "loss": 1.1875, "step": 361 }, { "epoch": 1.00836820083682, "grad_norm": 1.1487145048815297, "learning_rate": 1.0789223872639385e-05, "loss": 1.3283, "step": 362 }, { "epoch": 1.0111576011157601, "grad_norm": 1.210362167885254, "learning_rate": 1.0742887213722372e-05, "loss": 1.1607, "step": 363 }, { "epoch": 1.0139470013947, "grad_norm": 1.167683710016959, "learning_rate": 1.0696534510221575e-05, "loss": 1.3125, "step": 364 }, { "epoch": 1.0167364016736402, "grad_norm": 1.224749951044779, "learning_rate": 1.065016676324433e-05, "loss": 1.2384, "step": 365 }, { "epoch": 1.0195258019525801, "grad_norm": 1.1566624177175886, "learning_rate": 1.0603784974222862e-05, "loss": 1.3956, "step": 366 }, { "epoch": 1.0223152022315203, "grad_norm": 1.2969848771007706, "learning_rate": 1.0557390144892684e-05, "loss": 1.3216, "step": 367 }, { "epoch": 1.0251046025104602, "grad_norm": 1.1557275837790277, "learning_rate": 1.0510983277270945e-05, "loss": 1.1656, "step": 368 }, { "epoch": 1.0278940027894004, "grad_norm": 1.1274495156209017, "learning_rate": 1.0464565373634784e-05, "loss": 1.234, "step": 369 }, { "epoch": 1.0306834030683403, "grad_norm": 1.2136920982158583, "learning_rate": 1.0418137436499699e-05, "loss": 1.1579, "step": 370 }, { "epoch": 1.0334728033472804, "grad_norm": 1.2136361742646686, "learning_rate": 1.0371700468597886e-05, "loss": 1.3869, "step": 371 }, { "epoch": 1.0362622036262203, "grad_norm": 1.1175097910575362, "learning_rate": 1.0325255472856586e-05, "loss": 1.214, "step": 372 }, { "epoch": 1.0390516039051605, "grad_norm": 1.1395096520260177, "learning_rate": 1.0278803452376416e-05, "loss": 1.436, "step": 373 }, { "epoch": 1.0418410041841004, "grad_norm": 1.1082860671382055, "learning_rate": 1.0232345410409718e-05, "loss": 1.2397, "step": 374 }, { "epoch": 1.0446304044630403, "grad_norm": 1.1045608548981312, "learning_rate": 1.018588235033888e-05, "loss": 1.2764, "step": 375 }, { "epoch": 1.0474198047419805, "grad_norm": 1.1792908172632213, "learning_rate": 1.0139415275654671e-05, "loss": 1.3103, "step": 376 }, { "epoch": 1.0502092050209204, "grad_norm": 1.1928217784395125, "learning_rate": 1.0092945189934558e-05, "loss": 1.2358, "step": 377 }, { "epoch": 1.0529986052998606, "grad_norm": 1.2145452681867133, "learning_rate": 1.0046473096821047e-05, "loss": 1.196, "step": 378 }, { "epoch": 1.0557880055788005, "grad_norm": 1.2041436209676546, "learning_rate": 1e-05, "loss": 1.3178, "step": 379 }, { "epoch": 1.0585774058577406, "grad_norm": 1.148399751524864, "learning_rate": 9.953526903178956e-06, "loss": 1.4499, "step": 380 }, { "epoch": 1.0613668061366806, "grad_norm": 1.1974026865483098, "learning_rate": 9.907054810065446e-06, "loss": 1.2057, "step": 381 }, { "epoch": 1.0641562064156207, "grad_norm": 1.5812229698878382, "learning_rate": 9.860584724345334e-06, "loss": 1.482, "step": 382 }, { "epoch": 1.0669456066945606, "grad_norm": 1.1834008069729351, "learning_rate": 9.81411764966112e-06, "loss": 1.3193, "step": 383 }, { "epoch": 1.0697350069735008, "grad_norm": 1.0680962669389744, "learning_rate": 9.767654589590284e-06, "loss": 1.1936, "step": 384 }, { "epoch": 1.0725244072524407, "grad_norm": 1.2433855122802504, "learning_rate": 9.721196547623585e-06, "loss": 1.3485, "step": 385 }, { "epoch": 1.0753138075313808, "grad_norm": 1.1818473383563528, "learning_rate": 9.674744527143419e-06, "loss": 1.2435, "step": 386 }, { "epoch": 1.0781032078103208, "grad_norm": 1.1606102472129574, "learning_rate": 9.628299531402118e-06, "loss": 1.352, "step": 387 }, { "epoch": 1.080892608089261, "grad_norm": 1.3474388049187347, "learning_rate": 9.581862563500305e-06, "loss": 1.3987, "step": 388 }, { "epoch": 1.0836820083682008, "grad_norm": 1.2419068969830154, "learning_rate": 9.535434626365221e-06, "loss": 1.3226, "step": 389 }, { "epoch": 1.086471408647141, "grad_norm": 1.1382928547735685, "learning_rate": 9.489016722729059e-06, "loss": 1.2358, "step": 390 }, { "epoch": 1.089260808926081, "grad_norm": 1.062780531568017, "learning_rate": 9.442609855107317e-06, "loss": 1.1819, "step": 391 }, { "epoch": 1.0920502092050208, "grad_norm": 1.10859906931155, "learning_rate": 9.39621502577714e-06, "loss": 1.2527, "step": 392 }, { "epoch": 1.094839609483961, "grad_norm": 1.2185757174534009, "learning_rate": 9.349833236755675e-06, "loss": 1.3156, "step": 393 }, { "epoch": 1.097629009762901, "grad_norm": 1.225759251550299, "learning_rate": 9.30346548977843e-06, "loss": 1.1902, "step": 394 }, { "epoch": 1.100418410041841, "grad_norm": 1.143304170948198, "learning_rate": 9.257112786277631e-06, "loss": 1.6164, "step": 395 }, { "epoch": 1.103207810320781, "grad_norm": 1.1929513674684669, "learning_rate": 9.21077612736062e-06, "loss": 1.3059, "step": 396 }, { "epoch": 1.1059972105997211, "grad_norm": 1.2652518498481602, "learning_rate": 9.164456513788186e-06, "loss": 1.3585, "step": 397 }, { "epoch": 1.108786610878661, "grad_norm": 1.181284519624733, "learning_rate": 9.118154945953015e-06, "loss": 1.3096, "step": 398 }, { "epoch": 1.1115760111576012, "grad_norm": 1.1391566905227906, "learning_rate": 9.07187242385801e-06, "loss": 1.2707, "step": 399 }, { "epoch": 1.114365411436541, "grad_norm": 1.0825559641774511, "learning_rate": 9.025609947094765e-06, "loss": 1.2668, "step": 400 }, { "epoch": 1.1171548117154813, "grad_norm": 1.1830262642050864, "learning_rate": 8.979368514821917e-06, "loss": 1.5181, "step": 401 }, { "epoch": 1.1199442119944212, "grad_norm": 1.3026726939018842, "learning_rate": 8.933149125743615e-06, "loss": 1.219, "step": 402 }, { "epoch": 1.1227336122733613, "grad_norm": 1.144101939773731, "learning_rate": 8.88695277808791e-06, "loss": 1.3683, "step": 403 }, { "epoch": 1.1255230125523012, "grad_norm": 1.2305348777008256, "learning_rate": 8.840780469585215e-06, "loss": 1.3366, "step": 404 }, { "epoch": 1.1283124128312414, "grad_norm": 1.209754151387273, "learning_rate": 8.79463319744677e-06, "loss": 1.1868, "step": 405 }, { "epoch": 1.1283124128312414, "eval_loss": 1.5783870220184326, "eval_runtime": 158.6338, "eval_samples_per_second": 2.005, "eval_steps_per_second": 0.126, "step": 405 }, { "epoch": 1.1311018131101813, "grad_norm": 1.1895020228803659, "learning_rate": 8.748511958343076e-06, "loss": 1.2254, "step": 406 }, { "epoch": 1.1338912133891212, "grad_norm": 1.0698636977312026, "learning_rate": 8.702417748382384e-06, "loss": 1.2746, "step": 407 }, { "epoch": 1.1366806136680614, "grad_norm": 1.1610395502416724, "learning_rate": 8.656351563089185e-06, "loss": 1.1515, "step": 408 }, { "epoch": 1.1394700139470013, "grad_norm": 1.0723262933707627, "learning_rate": 8.610314397382701e-06, "loss": 1.2238, "step": 409 }, { "epoch": 1.1422594142259415, "grad_norm": 1.1092261729942694, "learning_rate": 8.564307245555403e-06, "loss": 1.2052, "step": 410 }, { "epoch": 1.1450488145048814, "grad_norm": 1.0779129863872163, "learning_rate": 8.51833110125153e-06, "loss": 1.3471, "step": 411 }, { "epoch": 1.1478382147838215, "grad_norm": 1.2861746029314869, "learning_rate": 8.472386957445635e-06, "loss": 1.2837, "step": 412 }, { "epoch": 1.1506276150627615, "grad_norm": 1.0742534390601233, "learning_rate": 8.426475806421139e-06, "loss": 1.3086, "step": 413 }, { "epoch": 1.1534170153417016, "grad_norm": 1.1872147964682518, "learning_rate": 8.380598639748898e-06, "loss": 1.2254, "step": 414 }, { "epoch": 1.1562064156206415, "grad_norm": 1.07165806884352, "learning_rate": 8.334756448265782e-06, "loss": 1.275, "step": 415 }, { "epoch": 1.1589958158995817, "grad_norm": 1.2751759485563616, "learning_rate": 8.288950222053287e-06, "loss": 1.1922, "step": 416 }, { "epoch": 1.1617852161785216, "grad_norm": 1.1196667842580768, "learning_rate": 8.243180950416142e-06, "loss": 1.2673, "step": 417 }, { "epoch": 1.1645746164574617, "grad_norm": 1.1440592720887446, "learning_rate": 8.197449621860944e-06, "loss": 1.3993, "step": 418 }, { "epoch": 1.1673640167364017, "grad_norm": 1.176436140811514, "learning_rate": 8.151757224074815e-06, "loss": 1.3844, "step": 419 }, { "epoch": 1.1701534170153418, "grad_norm": 1.2831755398630933, "learning_rate": 8.106104743904065e-06, "loss": 1.4343, "step": 420 }, { "epoch": 1.1729428172942817, "grad_norm": 1.181724274442928, "learning_rate": 8.060493167332874e-06, "loss": 1.3049, "step": 421 }, { "epoch": 1.1757322175732217, "grad_norm": 1.1464276027570777, "learning_rate": 8.014923479462007e-06, "loss": 1.234, "step": 422 }, { "epoch": 1.1785216178521618, "grad_norm": 1.1377604892058606, "learning_rate": 7.969396664487534e-06, "loss": 1.2889, "step": 423 }, { "epoch": 1.1813110181311017, "grad_norm": 1.1339458036648977, "learning_rate": 7.923913705679573e-06, "loss": 1.2602, "step": 424 }, { "epoch": 1.1841004184100419, "grad_norm": 1.0197395887525806, "learning_rate": 7.878475585361045e-06, "loss": 1.126, "step": 425 }, { "epoch": 1.1868898186889818, "grad_norm": 1.080702461827881, "learning_rate": 7.833083284886484e-06, "loss": 1.1639, "step": 426 }, { "epoch": 1.189679218967922, "grad_norm": 1.2607987099270583, "learning_rate": 7.787737784620803e-06, "loss": 1.4396, "step": 427 }, { "epoch": 1.1924686192468619, "grad_norm": 1.1254779807057225, "learning_rate": 7.74244006391817e-06, "loss": 1.3822, "step": 428 }, { "epoch": 1.195258019525802, "grad_norm": 1.1774004879920348, "learning_rate": 7.697191101100802e-06, "loss": 1.3326, "step": 429 }, { "epoch": 1.198047419804742, "grad_norm": 1.0896896006152201, "learning_rate": 7.651991873437884e-06, "loss": 1.2928, "step": 430 }, { "epoch": 1.200836820083682, "grad_norm": 1.1261304598713149, "learning_rate": 7.606843357124426e-06, "loss": 1.2123, "step": 431 }, { "epoch": 1.203626220362622, "grad_norm": 1.1658455006742379, "learning_rate": 7.561746527260197e-06, "loss": 1.3404, "step": 432 }, { "epoch": 1.2064156206415622, "grad_norm": 1.233442454888862, "learning_rate": 7.516702357828672e-06, "loss": 1.4484, "step": 433 }, { "epoch": 1.209205020920502, "grad_norm": 1.20274243777343, "learning_rate": 7.471711821675973e-06, "loss": 1.1722, "step": 434 }, { "epoch": 1.2119944211994422, "grad_norm": 1.0643983498668543, "learning_rate": 7.42677589048989e-06, "loss": 1.1699, "step": 435 }, { "epoch": 1.2147838214783822, "grad_norm": 1.0591582855658968, "learning_rate": 7.381895534778852e-06, "loss": 1.3417, "step": 436 }, { "epoch": 1.217573221757322, "grad_norm": 1.1587399832790362, "learning_rate": 7.337071723851018e-06, "loss": 1.2767, "step": 437 }, { "epoch": 1.2203626220362622, "grad_norm": 1.1559690690845343, "learning_rate": 7.292305425793291e-06, "loss": 1.3692, "step": 438 }, { "epoch": 1.2231520223152021, "grad_norm": 1.1477911804467655, "learning_rate": 7.247597607450446e-06, "loss": 1.4562, "step": 439 }, { "epoch": 1.2259414225941423, "grad_norm": 1.244415118958711, "learning_rate": 7.2029492344042395e-06, "loss": 1.3252, "step": 440 }, { "epoch": 1.2287308228730822, "grad_norm": 1.1256137359133935, "learning_rate": 7.1583612709525405e-06, "loss": 1.1368, "step": 441 }, { "epoch": 1.2315202231520224, "grad_norm": 1.1793196712059852, "learning_rate": 7.113834680088527e-06, "loss": 1.3781, "step": 442 }, { "epoch": 1.2343096234309623, "grad_norm": 1.2150025131043334, "learning_rate": 7.06937042347987e-06, "loss": 1.2111, "step": 443 }, { "epoch": 1.2370990237099024, "grad_norm": 1.1023846781294708, "learning_rate": 7.024969461447973e-06, "loss": 1.2601, "step": 444 }, { "epoch": 1.2398884239888424, "grad_norm": 1.0716238418458055, "learning_rate": 6.980632752947221e-06, "loss": 1.153, "step": 445 }, { "epoch": 1.2426778242677825, "grad_norm": 1.2507786838071617, "learning_rate": 6.936361255544288e-06, "loss": 1.2586, "step": 446 }, { "epoch": 1.2454672245467224, "grad_norm": 1.214628056363252, "learning_rate": 6.892155925397437e-06, "loss": 1.2378, "step": 447 }, { "epoch": 1.2482566248256626, "grad_norm": 1.1603500824157453, "learning_rate": 6.848017717235878e-06, "loss": 1.3192, "step": 448 }, { "epoch": 1.2510460251046025, "grad_norm": 1.1687329408420344, "learning_rate": 6.803947584339148e-06, "loss": 1.2094, "step": 449 }, { "epoch": 1.2538354253835426, "grad_norm": 1.2918425935100006, "learning_rate": 6.7599464785165195e-06, "loss": 1.3102, "step": 450 }, { "epoch": 1.2538354253835426, "eval_loss": 1.5750354528427124, "eval_runtime": 158.0557, "eval_samples_per_second": 2.012, "eval_steps_per_second": 0.127, "step": 450 }, { "epoch": 1.2566248256624826, "grad_norm": 1.2510681039370228, "learning_rate": 6.716015350086449e-06, "loss": 1.2365, "step": 451 }, { "epoch": 1.2594142259414225, "grad_norm": 1.1439803976132223, "learning_rate": 6.672155147856046e-06, "loss": 1.2992, "step": 452 }, { "epoch": 1.2622036262203626, "grad_norm": 1.2149245156903248, "learning_rate": 6.628366819100586e-06, "loss": 1.4374, "step": 453 }, { "epoch": 1.2649930264993028, "grad_norm": 1.1763769310735905, "learning_rate": 6.584651309543049e-06, "loss": 1.2003, "step": 454 }, { "epoch": 1.2677824267782427, "grad_norm": 1.127070003440945, "learning_rate": 6.54100956333369e-06, "loss": 1.1715, "step": 455 }, { "epoch": 1.2705718270571826, "grad_norm": 1.019865022262857, "learning_rate": 6.497442523029663e-06, "loss": 1.3491, "step": 456 }, { "epoch": 1.2733612273361228, "grad_norm": 1.1857253940298278, "learning_rate": 6.453951129574644e-06, "loss": 1.2559, "step": 457 }, { "epoch": 1.2761506276150627, "grad_norm": 1.082634058798414, "learning_rate": 6.410536322278523e-06, "loss": 1.1154, "step": 458 }, { "epoch": 1.2789400278940029, "grad_norm": 1.212134850206044, "learning_rate": 6.3671990387971096e-06, "loss": 1.3202, "step": 459 }, { "epoch": 1.2817294281729428, "grad_norm": 1.0917010213427312, "learning_rate": 6.32394021511189e-06, "loss": 1.3484, "step": 460 }, { "epoch": 1.284518828451883, "grad_norm": 1.1428008219567098, "learning_rate": 6.280760785509802e-06, "loss": 1.1919, "step": 461 }, { "epoch": 1.2873082287308228, "grad_norm": 1.0825996728928653, "learning_rate": 6.237661682563055e-06, "loss": 1.2082, "step": 462 }, { "epoch": 1.2900976290097628, "grad_norm": 1.1848809666798936, "learning_rate": 6.194643837109015e-06, "loss": 1.2828, "step": 463 }, { "epoch": 1.292887029288703, "grad_norm": 1.0895688626081312, "learning_rate": 6.151708178230057e-06, "loss": 1.2387, "step": 464 }, { "epoch": 1.295676429567643, "grad_norm": 1.1868518830616108, "learning_rate": 6.108855633233546e-06, "loss": 1.297, "step": 465 }, { "epoch": 1.298465829846583, "grad_norm": 1.1228238807592477, "learning_rate": 6.066087127631761e-06, "loss": 1.4407, "step": 466 }, { "epoch": 1.301255230125523, "grad_norm": 1.17982652645882, "learning_rate": 6.0234035851219604e-06, "loss": 1.2222, "step": 467 }, { "epoch": 1.304044630404463, "grad_norm": 1.2059016405123564, "learning_rate": 5.9808059275663775e-06, "loss": 1.2743, "step": 468 }, { "epoch": 1.3068340306834032, "grad_norm": 1.2223828433454567, "learning_rate": 5.93829507497235e-06, "loss": 1.4048, "step": 469 }, { "epoch": 1.3096234309623431, "grad_norm": 1.2327820107615224, "learning_rate": 5.895871945472434e-06, "loss": 1.5033, "step": 470 }, { "epoch": 1.312412831241283, "grad_norm": 1.1838495789031667, "learning_rate": 5.853537455304575e-06, "loss": 1.2618, "step": 471 }, { "epoch": 1.3152022315202232, "grad_norm": 1.0841644055995976, "learning_rate": 5.811292518792324e-06, "loss": 1.453, "step": 472 }, { "epoch": 1.3179916317991631, "grad_norm": 1.3004967203117666, "learning_rate": 5.769138048325087e-06, "loss": 1.2257, "step": 473 }, { "epoch": 1.3207810320781033, "grad_norm": 1.1043354920526318, "learning_rate": 5.72707495433842e-06, "loss": 1.2821, "step": 474 }, { "epoch": 1.3235704323570432, "grad_norm": 1.2877538618327764, "learning_rate": 5.685104145294364e-06, "loss": 1.214, "step": 475 }, { "epoch": 1.3263598326359833, "grad_norm": 1.1788804153888472, "learning_rate": 5.643226527661825e-06, "loss": 1.3006, "step": 476 }, { "epoch": 1.3291492329149233, "grad_norm": 1.0526011395627175, "learning_rate": 5.601443005897012e-06, "loss": 1.3178, "step": 477 }, { "epoch": 1.3319386331938632, "grad_norm": 1.0726595908035388, "learning_rate": 5.55975448242386e-06, "loss": 1.3458, "step": 478 }, { "epoch": 1.3347280334728033, "grad_norm": 1.0976574017960397, "learning_rate": 5.5181618576146e-06, "loss": 1.3022, "step": 479 }, { "epoch": 1.3375174337517435, "grad_norm": 1.2225185516827237, "learning_rate": 5.476666029770259e-06, "loss": 1.3442, "step": 480 }, { "epoch": 1.3403068340306834, "grad_norm": 1.0680703822354123, "learning_rate": 5.435267895101303e-06, "loss": 1.2985, "step": 481 }, { "epoch": 1.3430962343096233, "grad_norm": 1.186589064765597, "learning_rate": 5.393968347708233e-06, "loss": 1.1773, "step": 482 }, { "epoch": 1.3458856345885635, "grad_norm": 1.0143150489355277, "learning_rate": 5.352768279562315e-06, "loss": 1.313, "step": 483 }, { "epoch": 1.3486750348675036, "grad_norm": 1.2351862249444747, "learning_rate": 5.311668580486311e-06, "loss": 1.3821, "step": 484 }, { "epoch": 1.3514644351464435, "grad_norm": 1.1346210320256067, "learning_rate": 5.270670138135234e-06, "loss": 1.334, "step": 485 }, { "epoch": 1.3542538354253835, "grad_norm": 1.2118710215904622, "learning_rate": 5.229773837977208e-06, "loss": 1.3088, "step": 486 }, { "epoch": 1.3570432357043236, "grad_norm": 1.0342577775352215, "learning_rate": 5.188980563274315e-06, "loss": 1.1462, "step": 487 }, { "epoch": 1.3598326359832635, "grad_norm": 1.0728116890130244, "learning_rate": 5.148291195063555e-06, "loss": 1.2636, "step": 488 }, { "epoch": 1.3626220362622037, "grad_norm": 1.1893323626916112, "learning_rate": 5.107706612137776e-06, "loss": 1.2052, "step": 489 }, { "epoch": 1.3654114365411436, "grad_norm": 1.0157712327690198, "learning_rate": 5.067227691026737e-06, "loss": 1.1938, "step": 490 }, { "epoch": 1.3682008368200838, "grad_norm": 1.2326467093213043, "learning_rate": 5.026855305978129e-06, "loss": 1.2607, "step": 491 }, { "epoch": 1.3709902370990237, "grad_norm": 1.049878301655513, "learning_rate": 4.986590328938734e-06, "loss": 1.3024, "step": 492 }, { "epoch": 1.3737796373779636, "grad_norm": 1.0826344733380577, "learning_rate": 4.946433629535585e-06, "loss": 1.2758, "step": 493 }, { "epoch": 1.3765690376569037, "grad_norm": 1.1061892981697474, "learning_rate": 4.906386075057164e-06, "loss": 1.1803, "step": 494 }, { "epoch": 1.379358437935844, "grad_norm": 1.08675011661269, "learning_rate": 4.866448530434692e-06, "loss": 1.2746, "step": 495 }, { "epoch": 1.379358437935844, "eval_loss": 1.573391318321228, "eval_runtime": 157.8173, "eval_samples_per_second": 2.015, "eval_steps_per_second": 0.127, "step": 495 }, { "epoch": 1.3821478382147838, "grad_norm": 1.1281238857498397, "learning_rate": 4.826621858223431e-06, "loss": 1.357, "step": 496 }, { "epoch": 1.3849372384937237, "grad_norm": 1.055676305380402, "learning_rate": 4.786906918584083e-06, "loss": 1.2167, "step": 497 }, { "epoch": 1.387726638772664, "grad_norm": 1.213376805413726, "learning_rate": 4.747304569264179e-06, "loss": 1.4123, "step": 498 }, { "epoch": 1.390516039051604, "grad_norm": 1.0574410266065954, "learning_rate": 4.707815665579569e-06, "loss": 1.3955, "step": 499 }, { "epoch": 1.393305439330544, "grad_norm": 1.2166871008897608, "learning_rate": 4.668441060395958e-06, "loss": 1.3053, "step": 500 }, { "epoch": 1.3960948396094839, "grad_norm": 1.0626532706218652, "learning_rate": 4.629181604110464e-06, "loss": 1.2975, "step": 501 }, { "epoch": 1.398884239888424, "grad_norm": 1.2021150374539924, "learning_rate": 4.5900381446332854e-06, "loss": 1.2329, "step": 502 }, { "epoch": 1.401673640167364, "grad_norm": 1.121645372017073, "learning_rate": 4.551011527369348e-06, "loss": 1.2224, "step": 503 }, { "epoch": 1.404463040446304, "grad_norm": 1.1242323642605798, "learning_rate": 4.512102595200073e-06, "loss": 1.2218, "step": 504 }, { "epoch": 1.407252440725244, "grad_norm": 1.1250999334354057, "learning_rate": 4.4733121884651665e-06, "loss": 1.3524, "step": 505 }, { "epoch": 1.4100418410041842, "grad_norm": 1.190748096280525, "learning_rate": 4.434641144944464e-06, "loss": 1.2794, "step": 506 }, { "epoch": 1.412831241283124, "grad_norm": 1.1256136466982283, "learning_rate": 4.3960902998398524e-06, "loss": 1.2871, "step": 507 }, { "epoch": 1.415620641562064, "grad_norm": 1.3231624966545141, "learning_rate": 4.357660485757211e-06, "loss": 1.3109, "step": 508 }, { "epoch": 1.4184100418410042, "grad_norm": 1.1507561161367288, "learning_rate": 4.319352532688444e-06, "loss": 1.2732, "step": 509 }, { "epoch": 1.4211994421199443, "grad_norm": 1.2022076233431473, "learning_rate": 4.281167267993541e-06, "loss": 1.2193, "step": 510 }, { "epoch": 1.4239888423988842, "grad_norm": 1.1014114088374245, "learning_rate": 4.243105516382732e-06, "loss": 1.2282, "step": 511 }, { "epoch": 1.4267782426778242, "grad_norm": 1.1851428019160586, "learning_rate": 4.205168099898652e-06, "loss": 1.3455, "step": 512 }, { "epoch": 1.4295676429567643, "grad_norm": 1.262340605187208, "learning_rate": 4.167355837898585e-06, "loss": 1.3841, "step": 513 }, { "epoch": 1.4323570432357045, "grad_norm": 1.1995371048652899, "learning_rate": 4.129669547036798e-06, "loss": 1.3889, "step": 514 }, { "epoch": 1.4351464435146444, "grad_norm": 1.1534627899877103, "learning_rate": 4.092110041246865e-06, "loss": 1.323, "step": 515 }, { "epoch": 1.4379358437935843, "grad_norm": 1.0717749801066352, "learning_rate": 4.054678131724128e-06, "loss": 1.1756, "step": 516 }, { "epoch": 1.4407252440725244, "grad_norm": 1.0332565205169049, "learning_rate": 4.017374626908125e-06, "loss": 1.2921, "step": 517 }, { "epoch": 1.4435146443514644, "grad_norm": 1.299221266861857, "learning_rate": 3.980200332465189e-06, "loss": 1.503, "step": 518 }, { "epoch": 1.4463040446304045, "grad_norm": 1.1258042918602684, "learning_rate": 3.943156051271003e-06, "loss": 1.326, "step": 519 }, { "epoch": 1.4490934449093444, "grad_norm": 1.1498347580379522, "learning_rate": 3.906242583393279e-06, "loss": 1.2696, "step": 520 }, { "epoch": 1.4518828451882846, "grad_norm": 1.0518934141037535, "learning_rate": 3.8694607260744745e-06, "loss": 1.2943, "step": 521 }, { "epoch": 1.4546722454672245, "grad_norm": 1.0909311949978682, "learning_rate": 3.832811273714569e-06, "loss": 1.2605, "step": 522 }, { "epoch": 1.4574616457461644, "grad_norm": 1.085659967414048, "learning_rate": 3.7962950178539282e-06, "loss": 1.162, "step": 523 }, { "epoch": 1.4602510460251046, "grad_norm": 1.0373035764107983, "learning_rate": 3.7599127471561746e-06, "loss": 1.2543, "step": 524 }, { "epoch": 1.4630404463040447, "grad_norm": 1.195186829033534, "learning_rate": 3.7236652473911817e-06, "loss": 1.1093, "step": 525 }, { "epoch": 1.4658298465829847, "grad_norm": 1.060512460431333, "learning_rate": 3.687553301418092e-06, "loss": 1.1976, "step": 526 }, { "epoch": 1.4686192468619246, "grad_norm": 1.0036394866362008, "learning_rate": 3.651577689168405e-06, "loss": 1.3004, "step": 527 }, { "epoch": 1.4714086471408647, "grad_norm": 1.113980704434126, "learning_rate": 3.6157391876291535e-06, "loss": 1.2108, "step": 528 }, { "epoch": 1.4741980474198049, "grad_norm": 1.0528377393119437, "learning_rate": 3.580038570826093e-06, "loss": 1.1086, "step": 529 }, { "epoch": 1.4769874476987448, "grad_norm": 1.1766676130844111, "learning_rate": 3.5444766098070037e-06, "loss": 1.4426, "step": 530 }, { "epoch": 1.4797768479776847, "grad_norm": 1.2618504608225378, "learning_rate": 3.509054072625031e-06, "loss": 1.3814, "step": 531 }, { "epoch": 1.4825662482566249, "grad_norm": 1.2891981764585003, "learning_rate": 3.473771724322108e-06, "loss": 1.2466, "step": 532 }, { "epoch": 1.4853556485355648, "grad_norm": 1.0110218638691248, "learning_rate": 3.4386303269124142e-06, "loss": 1.1999, "step": 533 }, { "epoch": 1.488145048814505, "grad_norm": 1.2034400983007125, "learning_rate": 3.4036306393659324e-06, "loss": 1.3068, "step": 534 }, { "epoch": 1.4909344490934449, "grad_norm": 1.1385421777709188, "learning_rate": 3.3687734175920505e-06, "loss": 1.1693, "step": 535 }, { "epoch": 1.493723849372385, "grad_norm": 1.1564188245202627, "learning_rate": 3.334059414423233e-06, "loss": 1.2479, "step": 536 }, { "epoch": 1.496513249651325, "grad_norm": 1.0632144492289124, "learning_rate": 3.299489379598777e-06, "loss": 1.2818, "step": 537 } ], "logging_steps": 1, "max_steps": 716, "num_input_tokens_seen": 0, "num_train_epochs": 2, "save_steps": 179, "stateful_callbacks": { "TrainerControl": { "args": { "should_epoch_stop": false, "should_evaluate": false, "should_log": false, "should_save": true, "should_training_stop": false }, "attributes": {} } }, "total_flos": 349631812730880.0, "train_batch_size": 4, "trial_name": null, "trial_params": null}123version https://git-lfs.github.com/spec/v1oid sha256:176779fd314d79db1323a9603622ba6af7ce08e6291ea5cb8066c39938973900size 8504123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674#!/usr/bin/env python
# Copyright (c) Microsoft Corporation.# SPDX-License-Identifier: Apache-2.0
# DeepSpeed Team
# This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets# copied into the top level checkpoint dir, so the user can easily do the conversion at any point in# the future. Once extracted, the weights don't require DeepSpeed and can be used in any# application.## example:# python zero_to_fp32.py . output_dir/# or# python zero_to_fp32.py . output_dir/ --safe_serialization
import argparseimport torchimport globimport mathimport osimport reimport jsonfrom tqdm import tqdmfrom collections import OrderedDictfrom dataclasses import dataclass
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with# DeepSpeed data structures it has to be available in the current python environment.from deepspeed.utils import loggerfrom deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS, FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES, FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
@dataclassclass zero_model_state: buffers: dict() param_shapes: dict() shared_params: list ds_version: int frozen_param_shapes: dict() frozen_param_fragments: dict()
debug = 0
# load to cpudevice = torch.device('cpu')
def atoi(text): return int(text) if text.isdigit() else text
def natural_keys(text): ''' alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in the comments) ''' return [atoi(c) for c in re.split(r'(\d+)', text)]
def get_model_state_file(checkpoint_dir, zero_stage): if not os.path.isdir(checkpoint_dir): raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
# there should be only one file if zero_stage <= 2: file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt") elif zero_stage == 3: file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
if not os.path.exists(file): raise FileNotFoundError(f"can't find model states file at '{file}'")
return file
def get_checkpoint_files(checkpoint_dir, glob_pattern): # XXX: need to test that this simple glob rule works for multi-node setup too ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
if len(ckpt_files) == 0: raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
return ckpt_files
def get_optim_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
def get_model_state_files(checkpoint_dir): return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
def parse_model_states(files): zero_model_states = [] for file in files: state_dict = torch.load(file, map_location=device)
if BUFFER_NAMES not in state_dict: raise ValueError(f"{file} is not a model state checkpoint") buffer_names = state_dict[BUFFER_NAMES] if debug: print("Found buffers:", buffer_names)
# recover just the buffers while restoring them to fp32 if they were saved in fp16 buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names} param_shapes = state_dict[PARAM_SHAPES]
# collect parameters that are included in param_shapes param_names = [] for s in param_shapes: for name in s.keys(): param_names.append(name)
# update with frozen parameters frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None) if frozen_param_shapes is not None: if debug: print(f"Found frozen_param_shapes: {frozen_param_shapes}") param_names += list(frozen_param_shapes.keys())
# handle shared params shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
ds_version = state_dict.get(DS_VERSION, None)
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
z_model_state = zero_model_state(buffers=buffers, param_shapes=param_shapes, shared_params=shared_params, ds_version=ds_version, frozen_param_shapes=frozen_param_shapes, frozen_param_fragments=frozen_param_fragments) zero_model_states.append(z_model_state)
return zero_model_states
def parse_optim_states(files, ds_checkpoint_dir): total_files = len(files) state_dicts = [] for f in files: state_dict = torch.load(f, map_location=device) # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights # and also handle the case where it was already removed by another helper script state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None) state_dicts.append(state_dict)
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]: raise ValueError(f"{files[0]} is not a zero checkpoint") zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE] world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert # parameters can be different from data parallelism for non-expert parameters. So we can just # use the max of the partition_count to get the dp world_size.
if type(world_size) is list: world_size = max(world_size)
if world_size != total_files: raise ValueError( f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. " "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes." )
# the groups are named differently in each stage if zero_stage <= 2: fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS elif zero_stage == 3: fp32_groups_key = FP32_FLAT_GROUPS else: raise ValueError(f"unknown zero stage {zero_stage}")
if zero_stage <= 2: fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))] elif zero_stage == 3: # if there is more than one param group, there will be multiple flattened tensors - one # flattened tensor per group - for simplicity merge them into a single tensor # # XXX: could make the script more memory efficient for when there are multiple groups - it # will require matching the sub-lists of param_shapes for each param group flattened tensor
fp32_flat_groups = [ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts)) ]
return zero_stage, world_size, fp32_flat_groups
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters): """ Returns fp32 state_dict reconstructed from ds checkpoint
Args: - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
""" print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
optim_files = get_optim_files(ds_checkpoint_dir) zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir) print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
model_files = get_model_state_files(ds_checkpoint_dir)
zero_model_states = parse_model_states(model_files) print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
if zero_stage <= 2: return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters) elif zero_stage == 3: return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters)
def _zero2_merge_frozen_params(state_dict, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
frozen_param_shapes = zero_model_states[0].frozen_param_shapes frozen_param_fragments = zero_model_states[0].frozen_param_fragments
if debug: num_elem = sum(s.numel() for s in frozen_param_shapes.values()) print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in frozen_param_fragments.values()]) print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
state_dict[name] = frozen_param_fragments[name]
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
def _has_callable(obj, fn): attr = getattr(obj, fn, None) return callable(attr)
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes
# Reconstruction protocol: # # XXX: document this
if debug: for i in range(world_size): for j in range(len(fp32_flat_groups[0])): print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
# XXX: memory usage doubles here (zero2) num_param_groups = len(fp32_flat_groups[0]) merged_single_partition_of_fp32_groups = [] for i in range(num_param_groups): merged_partitions = [sd[i] for sd in fp32_flat_groups] full_single_fp32_vector = torch.cat(merged_partitions, 0) merged_single_partition_of_fp32_groups.append(full_single_fp32_vector) avail_numel = sum( [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
if debug: wanted_params = sum([len(shapes) for shapes in param_shapes]) wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes]) # not asserting if there is a mismatch due to possible padding print(f"Have {avail_numel} numels to process.") print(f"Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution total_numel = 0 total_params = 0 for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups): offset = 0 avail_numel = full_single_fp32_vector.numel() for name, shape in shapes.items():
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape) total_numel += unpartitioned_numel total_params += 1
if debug: print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ") state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape) offset += unpartitioned_numel
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex # paddings performed in the code it's almost impossible to predict the exact numbers w/o the # live optimizer object, so we are checking that the numbers are within the right range align_to = 2 * world_size
def zero2_align(x): return align_to * math.ceil(x / align_to)
if debug: print(f"original offset={offset}, avail_numel={avail_numel}")
offset = zero2_align(offset) avail_numel = zero2_align(avail_numel)
if debug: print(f"aligned offset={offset}, avail_numel={avail_numel}")
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero2_merge_frozen_params(state_dict, zero_model_states)
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def zero3_partitioned_param_info(unpartitioned_numel, world_size): remainder = unpartitioned_numel % world_size padding_numel = (world_size - remainder) if remainder else 0 partitioned_numel = math.ceil(unpartitioned_numel / world_size) return partitioned_numel, padding_numel
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states): if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0: return
if debug: for i in range(world_size): num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values()) print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
frozen_param_shapes = zero_model_states[0].frozen_param_shapes wanted_params = len(frozen_param_shapes) wanted_numel = sum(s.numel() for s in frozen_param_shapes.values()) avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size print(f'Frozen params: Have {avail_numel} numels to process.') print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
total_params = 0 total_numel = 0 for name, shape in zero_model_states[0].frozen_param_shapes.items(): total_params += 1 unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states) state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states): param_shapes = zero_model_states[0].param_shapes avail_numel = fp32_flat_groups[0].numel() * world_size # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each # param, re-consolidating each param, while dealing with padding if any
# merge list of dicts, preserving order param_shapes = {k: v for d in param_shapes for k, v in d.items()}
if debug: for i in range(world_size): print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
wanted_params = len(param_shapes) wanted_numel = sum(shape.numel() for shape in param_shapes.values()) # not asserting if there is a mismatch due to possible padding avail_numel = fp32_flat_groups[0].numel() * world_size print(f"Trainable params: Have {avail_numel} numels to process.") print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
# params # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support # out-of-core computing solution offset = 0 total_numel = 0 total_params = 0 for name, shape in tqdm(param_shapes.items(), desc='Gathering Sharded Weights'): unpartitioned_numel = shape.numel() total_numel += unpartitioned_numel total_params += 1 partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
if debug: print( f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}" )
# XXX: memory usage doubles here state_dict[name] = torch.cat( tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)), 0).narrow(0, 0, unpartitioned_numel).view(shape) offset += partitioned_numel
offset *= world_size
# Sanity check if offset != avail_numel: raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states, exclude_frozen_parameters): state_dict = OrderedDict()
# buffers buffers = zero_model_states[0].buffers state_dict.update(buffers) if debug: print(f"added {len(buffers)} buffers")
if not exclude_frozen_parameters: _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
# recover shared parameters for pair in zero_model_states[0].shared_params: if pair[1] in state_dict: state_dict[pair[0]] = state_dict[pair[1]]
return state_dict
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None, exclude_frozen_parameters=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example via a model hub.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters
Returns: - pytorch ``state_dict``
Note: this approach may not work if your application doesn't have sufficient free CPU memory and you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with the checkpoint.
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint # do the training and checkpoint saving state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu model = model.cpu() # move to cpu model.load_state_dict(state_dict) # submit to model hub or save the model to share with others
In this example the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
""" if tag is None: latest_path = os.path.join(checkpoint_dir, 'latest') if os.path.isfile(latest_path): with open(latest_path, 'r') as fd: tag = fd.read().strip() else: raise ValueError(f"Unable to find 'latest' file at {latest_path}")
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
if not os.path.isdir(ds_checkpoint_dir): raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_dir, max_shard_size="5GB", safe_serialization=False, tag=None, exclude_frozen_parameters=False): """ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
Args: - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``output_dir``: directory to the pytorch fp32 state_dict output files - ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB - ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`). - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14`` - ``exclude_frozen_parameters``: exclude frozen parameters """ # Dependency pre-check if safe_serialization: try: from safetensors.torch import save_file except ImportError: print('If you want to use `safe_serialization`, please `pip install safetensors`') raise if max_shard_size is not None: try: from huggingface_hub import split_torch_state_dict_into_shards except ImportError: print('If you want to use `max_shard_size`, please `pip install huggingface_hub`') raise
# Convert zero checkpoint to state_dict state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag, exclude_frozen_parameters)
# Shard the model if it is too big. weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin" if max_shard_size is not None: filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors") state_dict_split = split_torch_state_dict_into_shards(state_dict, filename_pattern=filename_pattern, max_shard_size=max_shard_size) else: from collections import namedtuple StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"]) state_dict_split = StateDictSplit(is_sharded=False, filename_to_tensors={weights_name: list(state_dict.keys())})
# Save the model filename_to_tensors = state_dict_split.filename_to_tensors.items() for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"): shard = {tensor: state_dict[tensor].contiguous() for tensor in tensors} output_path = os.path.join(output_dir, shard_file) if safe_serialization: save_file(shard, output_path, metadata={"format": "pt"}) else: torch.save(shard, output_path)
# Save index if sharded if state_dict_split.is_sharded: index = { "metadata": state_dict_split.metadata, "weight_map": state_dict_split.tensor_to_filename, } save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json" save_index_file = os.path.join(output_dir, save_index_file) with open(save_index_file, "w", encoding="utf-8") as f: content = json.dumps(index, indent=2, sort_keys=True) + "\n" f.write(content)
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None): """ 1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the provided model
Args: - ``model``: the model object to update - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``) - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
Returns: - ``model`: modified model
Make sure you have plenty of CPU memory available before you call this function. If you don't have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it conveniently placed for you in the checkpoint folder.
A typical usage might be ::
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir) # submit to model hub or save the model to share with others
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context of the same application. i.e. you will need to re-initialize the deepspeed engine, since ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
""" logger.info(f"Extracting fp32 weights") state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
logger.info(f"Overwriting model with fp32 weights") model = model.cpu() model.load_state_dict(state_dict, strict=False)
return model
if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("checkpoint_dir", type=str, help="path to the desired checkpoint folder, e.g., path/checkpoint-12") parser.add_argument("output_dir", type=str, help="directory to the pytorch fp32 state_dict output files" "(e.g. path/checkpoint-12-output/)") parser.add_argument( "--max_shard_size", type=str, default="5GB", help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size" "lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`" "We default it to 5GB in order for models to be able to run easily on free-tier google colab instances" "without CPU OOM issues.") parser.add_argument( "--safe_serialization", default=False, action='store_true', help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).") parser.add_argument("-t", "--tag", type=str, default=None, help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1") parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters") parser.add_argument("-d", "--debug", action='store_true', help="enable debug") args = parser.parse_args()
debug = args.debug
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_dir, max_shard_size=args.max_shard_size, safe_serialization=args.safe_serialization, tag=args.tag, exclude_frozen_parameters=args.exclude_frozen_parameters)checkpoint-537/README.mdAdded+202
checkpoint-537/adapter_config.jsonAdded+42
checkpoint-537/adapter_model.safetensorsAdded+3
checkpoint-537/global_step536/bf16_zero_pp_rank_0_mp_rank_00_optim_states.ptAdded+3
checkpoint-537/global_step536/bf16_zero_pp_rank_1_mp_rank_00_optim_states.ptAdded+3
checkpoint-537/global_step536/bf16_zero_pp_rank_2_mp_rank_00_optim_states.ptAdded+3
checkpoint-537/global_step536/bf16_zero_pp_rank_3_mp_rank_00_optim_states.ptAdded+3
checkpoint-537/global_step536/zero_pp_rank_0_mp_rank_00_model_states.ptAdded+3
checkpoint-537/global_step536/zero_pp_rank_1_mp_rank_00_model_states.ptAdded+3
checkpoint-537/global_step536/zero_pp_rank_2_mp_rank_00_model_states.ptAdded+3
checkpoint-537/global_step536/zero_pp_rank_3_mp_rank_00_model_states.ptAdded+3
checkpoint-537/latestAdded+1
checkpoint-537/rng_state_0.pthAdded+3
checkpoint-537/rng_state_1.pthAdded+3
checkpoint-537/rng_state_2.pthAdded+3
checkpoint-537/rng_state_3.pthAdded+3
checkpoint-537/scheduler.ptAdded+3
checkpoint-537/special_tokens_map.jsonAdded+30
checkpoint-537/tokenizer.jsonAdded+3
checkpoint-537/tokenizer_config.jsonAdded
checkpoint-537/trainer_state.jsonAdded+3889
checkpoint-537/training_args.binAdded+3
checkpoint-537/zero_to_fp32.pyAdded+674