Text Generation
Transformers
TensorBoard
Safetensors
gemma3_text
Generated from Trainer
sft
trl
conversational
text-generation-inference
Run this model with HF Jobs
Run Plofski/myPythonCoder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Plofski/myPythonCoder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Plofski/myPythonCoder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Plofski/myPythonCoder. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Plofski/myPythonCoder. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Plofski/myPythonCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Plofski/myPythonCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Plofski/myPythonCoder") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Plofski/myPythonCoder") model = AutoModelForCausalLM.from_pretrained("Plofski/myPythonCoder", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Plofski/myPythonCoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Plofski/myPythonCoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plofski/myPythonCoder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Plofski/myPythonCoder
- SGLang
How to use Plofski/myPythonCoder with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Plofski/myPythonCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plofski/myPythonCoder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Plofski/myPythonCoder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Plofski/myPythonCoder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Plofski/myPythonCoder with Docker Model Runner:
docker model run hf.co/Plofski/myPythonCoder
Training in progress, step 14000, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:d5a9bd42305a39ea10e14897e10ee483294601df6c8b6bb20eb9acc7de3a5b74size 536223056123version https://git-lfs.github.com/spec/v1oid sha256:071ff40e66008578cff6a11839a98b3bd55870fb4ecd78b520fd649a835f02e1size 536223056
123version https://git-lfs.github.com/spec/v1oid sha256:1fd3300583dc98302b4bc1805b201303b140f489f169bc005adefa8fde0fce38size 1072594443123version https://git-lfs.github.com/spec/v1oid sha256:f0402536afc76b268263c8a44f7565c5d35ba54094497cf95e3c11e92a054cd5size 1072594443
123version https://git-lfs.github.com/spec/v1oid sha256:5ce5bfd25fb939a324385a4adfd5b1d29fedc6793352a13b276f53eccc661d15size 1465123version https://git-lfs.github.com/spec/v1oid sha256:7200e211c4af21388df4ea9729221c37205d2f4defca496f0d1b43ecbe09b628size 1465
1 unmodified line234567891012147 unmodified lines12158121591216012161121621216313 unmodified lines121771217812179121801218112182121831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.7201289542615354,"eval_steps": 500,"global_step": 13500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,12147 unmodified lines"mean_token_accuracy": 0.7941052973270416,"num_tokens": 14956201.0,"step": 13500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.807875931971379e+16,"train_batch_size": 8,"trial_name": null,"trial_params": null1 unmodified line234567891012147 unmodified lines12158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261313 unmodified lines126271262812629126301263112632126331 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.8208744710860367,"eval_steps": 500,"global_step": 14000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,12147 unmodified lines"mean_token_accuracy": 0.7941052973270416,"num_tokens": 14956201.0,"step": 13500},{"epoch": 2.722143864598025,"grad_norm": 13.3125,"learning_rate": 1.8537175095708242e-06,"loss": 0.8932,"mean_token_accuracy": 0.7903563916683197,"num_tokens": 14968110.0,"step": 13510},{"epoch": 2.7241587749345153,"grad_norm": 12.4375,"learning_rate": 1.8402847739942239e-06,"loss": 0.8239,"mean_token_accuracy": 0.7959101080894471,"num_tokens": 14979544.0,"step": 13520},{"epoch": 2.7261736852710055,"grad_norm": 14.25,"learning_rate": 1.8268520384176238e-06,"loss": 0.8986,"mean_token_accuracy": 0.7841361403465271,"num_tokens": 14990853.0,"step": 13530},{"epoch": 2.7281885956074956,"grad_norm": 9.5,"learning_rate": 1.8134193028410239e-06,"loss": 0.7908,"mean_token_accuracy": 0.7991403341293335,"num_tokens": 15002448.0,"step": 13540},{"epoch": 2.7302035059439858,"grad_norm": 11.8125,"learning_rate": 1.7999865672644234e-06,"loss": 0.8348,"mean_token_accuracy": 0.797630226612091,"num_tokens": 15012426.0,"step": 13550},{"epoch": 2.7322184162804755,"grad_norm": 12.375,"learning_rate": 1.7865538316878235e-06,"loss": 0.829,"mean_token_accuracy": 0.8008688688278198,"num_tokens": 15023568.0,"step": 13560},{"epoch": 2.7342333266169656,"grad_norm": 11.875,"learning_rate": 1.7731210961112234e-06,"loss": 0.8301,"mean_token_accuracy": 0.7909713625907898,"num_tokens": 15033450.0,"step": 13570},{"epoch": 2.7362482369534558,"grad_norm": 10.875,"learning_rate": 1.759688360534623e-06,"loss": 0.797,"mean_token_accuracy": 0.8022173583507538,"num_tokens": 15045140.0,"step": 13580},{"epoch": 2.7382631472899455,"grad_norm": 10.4375,"learning_rate": 1.746255624958023e-06,"loss": 0.8381,"mean_token_accuracy": 0.7926445186138154,"num_tokens": 15056256.0,"step": 13590},{"epoch": 2.7402780576264356,"grad_norm": 11.1875,"learning_rate": 1.7328228893814228e-06,"loss": 0.8104,"mean_token_accuracy": 0.7977364182472229,"num_tokens": 15068134.0,"step": 13600},{"epoch": 2.7422929679629258,"grad_norm": 10.125,"learning_rate": 1.7193901538048225e-06,"loss": 0.8133,"mean_token_accuracy": 0.8040676951408386,"num_tokens": 15079578.0,"step": 13610},{"epoch": 2.7443078782994155,"grad_norm": 11.0,"learning_rate": 1.7059574182282224e-06,"loss": 0.9289,"mean_token_accuracy": 0.7738179624080658,"num_tokens": 15090034.0,"step": 13620},{"epoch": 2.7463227886359056,"grad_norm": 11.375,"learning_rate": 1.692524682651622e-06,"loss": 0.8635,"mean_token_accuracy": 0.7958697319030762,"num_tokens": 15101919.0,"step": 13630},{"epoch": 2.7483376989723958,"grad_norm": 13.0625,"learning_rate": 1.679091947075022e-06,"loss": 0.8911,"mean_token_accuracy": 0.7814191520214081,"num_tokens": 15114084.0,"step": 13640},{"epoch": 2.750352609308886,"grad_norm": 12.75,"learning_rate": 1.6656592114984219e-06,"loss": 0.7362,"mean_token_accuracy": 0.8138824105262756,"num_tokens": 15124878.0,"step": 13650},{"epoch": 2.7523675196453756,"grad_norm": 11.75,"learning_rate": 1.6522264759218216e-06,"loss": 0.8195,"mean_token_accuracy": 0.793831080198288,"num_tokens": 15135525.0,"step": 13660},{"epoch": 2.7543824299818658,"grad_norm": 9.8125,"learning_rate": 1.6387937403452214e-06,"loss": 0.7857,"mean_token_accuracy": 0.8074389100074768,"num_tokens": 15147692.0,"step": 13670},{"epoch": 2.756397340318356,"grad_norm": 10.125,"learning_rate": 1.6253610047686213e-06,"loss": 0.9199,"mean_token_accuracy": 0.7814192116260529,"num_tokens": 15159592.0,"step": 13680},{"epoch": 2.758412250654846,"grad_norm": 10.5625,"learning_rate": 1.611928269192021e-06,"loss": 0.7825,"mean_token_accuracy": 0.7981011807918549,"num_tokens": 15171601.0,"step": 13690},{"epoch": 2.760427160991336,"grad_norm": 14.9375,"learning_rate": 1.598495533615421e-06,"loss": 0.9254,"mean_token_accuracy": 0.777032095193863,"num_tokens": 15182890.0,"step": 13700},{"epoch": 2.762442071327826,"grad_norm": 12.125,"learning_rate": 1.5850627980388208e-06,"loss": 0.7658,"mean_token_accuracy": 0.8108864903450013,"num_tokens": 15193434.0,"step": 13710},{"epoch": 2.764456981664316,"grad_norm": 12.6875,"learning_rate": 1.5716300624622205e-06,"loss": 0.7604,"mean_token_accuracy": 0.8065372705459595,"num_tokens": 15204253.0,"step": 13720},{"epoch": 2.766471892000806,"grad_norm": 12.75,"learning_rate": 1.5581973268856204e-06,"loss": 0.7993,"mean_token_accuracy": 0.8044365346431732,"num_tokens": 15214089.0,"step": 13730},{"epoch": 2.768486802337296,"grad_norm": 11.4375,"learning_rate": 1.5447645913090203e-06,"loss": 0.8261,"mean_token_accuracy": 0.7986261487007141,"num_tokens": 15224909.0,"step": 13740},{"epoch": 2.770501712673786,"grad_norm": 16.125,"learning_rate": 1.53133185573242e-06,"loss": 0.9516,"mean_token_accuracy": 0.7706651806831359,"num_tokens": 15237744.0,"step": 13750},{"epoch": 2.772516623010276,"grad_norm": 18.25,"learning_rate": 1.5178991201558199e-06,"loss": 0.8024,"mean_token_accuracy": 0.8005965650081635,"num_tokens": 15248510.0,"step": 13760},{"epoch": 2.774531533346766,"grad_norm": 11.8125,"learning_rate": 1.5044663845792195e-06,"loss": 0.7795,"mean_token_accuracy": 0.8093705713748932,"num_tokens": 15258924.0,"step": 13770},{"epoch": 2.776546443683256,"grad_norm": 8.9375,"learning_rate": 1.4910336490026194e-06,"loss": 0.822,"mean_token_accuracy": 0.8004359900951385,"num_tokens": 15270012.0,"step": 13780},{"epoch": 2.7785613540197462,"grad_norm": 13.6875,"learning_rate": 1.4776009134260193e-06,"loss": 0.7118,"mean_token_accuracy": 0.8202294111251831,"num_tokens": 15280170.0,"step": 13790},{"epoch": 2.7805762643562364,"grad_norm": 10.4375,"learning_rate": 1.464168177849419e-06,"loss": 0.7994,"mean_token_accuracy": 0.8046676278114319,"num_tokens": 15291487.0,"step": 13800},{"epoch": 2.782591174692726,"grad_norm": 11.375,"learning_rate": 1.450735442272819e-06,"loss": 0.7917,"mean_token_accuracy": 0.7997995793819428,"num_tokens": 15302931.0,"step": 13810},{"epoch": 2.7846060850292162,"grad_norm": 11.75,"learning_rate": 1.437302706696219e-06,"loss": 0.8199,"mean_token_accuracy": 0.7960925221443176,"num_tokens": 15313041.0,"step": 13820},{"epoch": 2.7866209953657064,"grad_norm": 11.6875,"learning_rate": 1.4238699711196185e-06,"loss": 0.7861,"mean_token_accuracy": 0.8075309932231903,"num_tokens": 15324592.0,"step": 13830},{"epoch": 2.788635905702196,"grad_norm": 10.75,"learning_rate": 1.4104372355430186e-06,"loss": 0.9482,"mean_token_accuracy": 0.7787281274795532,"num_tokens": 15336954.0,"step": 13840},{"epoch": 2.7906508160386863,"grad_norm": 10.8125,"learning_rate": 1.3970044999664185e-06,"loss": 0.7294,"mean_token_accuracy": 0.81562819480896,"num_tokens": 15346970.0,"step": 13850},{"epoch": 2.7926657263751764,"grad_norm": 12.5,"learning_rate": 1.3835717643898182e-06,"loss": 0.8401,"mean_token_accuracy": 0.7911224365234375,"num_tokens": 15357988.0,"step": 13860},{"epoch": 2.794680636711666,"grad_norm": 11.6875,"learning_rate": 1.370139028813218e-06,"loss": 0.8417,"mean_token_accuracy": 0.7968161761760711,"num_tokens": 15368806.0,"step": 13870},{"epoch": 2.7966955470481563,"grad_norm": 12.875,"learning_rate": 1.3567062932366175e-06,"loss": 0.8506,"mean_token_accuracy": 0.7901014566421509,"num_tokens": 15378192.0,"step": 13880},{"epoch": 2.7987104573846464,"grad_norm": 12.1875,"learning_rate": 1.3432735576600176e-06,"loss": 0.7323,"mean_token_accuracy": 0.812350469827652,"num_tokens": 15388640.0,"step": 13890},{"epoch": 2.8007253677211366,"grad_norm": 13.0625,"learning_rate": 1.3298408220834175e-06,"loss": 0.7982,"mean_token_accuracy": 0.8071064949035645,"num_tokens": 15398587.0,"step": 13900},{"epoch": 2.8027402780576267,"grad_norm": 10.25,"learning_rate": 1.3164080865068172e-06,"loss": 0.9217,"mean_token_accuracy": 0.7764141440391541,"num_tokens": 15408343.0,"step": 13910},{"epoch": 2.8047551883941164,"grad_norm": 12.25,"learning_rate": 1.302975350930217e-06,"loss": 0.7961,"mean_token_accuracy": 0.799578857421875,"num_tokens": 15419485.0,"step": 13920},{"epoch": 2.8067700987306066,"grad_norm": 11.3125,"learning_rate": 1.289542615353617e-06,"loss": 0.8453,"mean_token_accuracy": 0.794361412525177,"num_tokens": 15431130.0,"step": 13930},{"epoch": 2.8087850090670967,"grad_norm": 14.75,"learning_rate": 1.2761098797770167e-06,"loss": 0.8325,"mean_token_accuracy": 0.7931640625,"num_tokens": 15442377.0,"step": 13940},{"epoch": 2.8107999194035864,"grad_norm": 11.5625,"learning_rate": 1.2626771442004166e-06,"loss": 0.7471,"mean_token_accuracy": 0.8172047972679138,"num_tokens": 15453500.0,"step": 13950},{"epoch": 2.8128148297400766,"grad_norm": 11.6875,"learning_rate": 1.2492444086238162e-06,"loss": 0.8275,"mean_token_accuracy": 0.7963262915611267,"num_tokens": 15465388.0,"step": 13960},{"epoch": 2.8148297400765667,"grad_norm": 12.875,"learning_rate": 1.2358116730472161e-06,"loss": 0.7675,"mean_token_accuracy": 0.8086236357688904,"num_tokens": 15475972.0,"step": 13970},{"epoch": 2.8168446504130564,"grad_norm": 10.0,"learning_rate": 1.222378937470616e-06,"loss": 0.7866,"mean_token_accuracy": 0.8052810370922089,"num_tokens": 15489313.0,"step": 13980},{"epoch": 2.8188595607495466,"grad_norm": 11.8125,"learning_rate": 1.208946201894016e-06,"loss": 0.7903,"mean_token_accuracy": 0.805169427394867,"num_tokens": 15500110.0,"step": 13990},{"epoch": 2.8208744710860367,"grad_norm": 13.5,"learning_rate": 1.1955134663174156e-06,"loss": 0.8045,"mean_token_accuracy": 0.7995685517787934,"num_tokens": 15509702.0,"step": 14000}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.874850530342093e+16,"train_batch_size": 8,"trial_name": null,"trial_params": null
last-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+453-3