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 14500, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:071ff40e66008578cff6a11839a98b3bd55870fb4ecd78b520fd649a835f02e1size 536223056123version https://git-lfs.github.com/spec/v1oid sha256:87d564460f84baac9ace9dc44cd612f3da4c9738f97e9806a8457bb9462e95dbsize 536223056
123version https://git-lfs.github.com/spec/v1oid sha256:f0402536afc76b268263c8a44f7565c5d35ba54094497cf95e3c11e92a054cd5size 1072594443123version https://git-lfs.github.com/spec/v1oid sha256:5ace8d39e9d75867a54c7c346772698f7c6e42165925320fb3b2367daa7c674esize 1072594443
123version https://git-lfs.github.com/spec/v1oid sha256:7200e211c4af21388df4ea9729221c37205d2f4defca496f0d1b43ecbe09b628size 1465123version https://git-lfs.github.com/spec/v1oid sha256:8e3f275449dfbc8efc7d2d2f06d134c7b39e55b8e539f36e09b007c731c81c65size 1465
1 unmodified line234567891012597 unmodified lines12608126091261012611126121261313 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,12597 unmodified lines"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": null1 unmodified line234567891012597 unmodified lines12608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313 unmodified lines130771307813079130801308113082130831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.921619987910538,"eval_steps": 500,"global_step": 14500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,12597 unmodified lines"mean_token_accuracy": 0.7995685517787934,"num_tokens": 15509702.0,"step": 14000},{"epoch": 2.8228893814225264,"grad_norm": 12.5625,"learning_rate": 1.1820807307408155e-06,"loss": 0.7108,"mean_token_accuracy": 0.8189300537109375,"num_tokens": 15519975.0,"step": 14010},{"epoch": 2.8249042917590166,"grad_norm": 12.75,"learning_rate": 1.1686479951642154e-06,"loss": 0.817,"mean_token_accuracy": 0.8028945684432983,"num_tokens": 15530042.0,"step": 14020},{"epoch": 2.8269192020955067,"grad_norm": 11.0,"learning_rate": 1.155215259587615e-06,"loss": 0.8255,"mean_token_accuracy": 0.7976077675819397,"num_tokens": 15540964.0,"step": 14030},{"epoch": 2.828934112431997,"grad_norm": 11.0625,"learning_rate": 1.141782524011015e-06,"loss": 0.8116,"mean_token_accuracy": 0.7950972735881805,"num_tokens": 15551879.0,"step": 14040},{"epoch": 2.830949022768487,"grad_norm": 15.5625,"learning_rate": 1.1283497884344149e-06,"loss": 0.8752,"mean_token_accuracy": 0.7869309186935425,"num_tokens": 15563299.0,"step": 14050},{"epoch": 2.8329639331049767,"grad_norm": 13.1875,"learning_rate": 1.1149170528578145e-06,"loss": 0.842,"mean_token_accuracy": 0.7949115037918091,"num_tokens": 15573972.0,"step": 14060},{"epoch": 2.834978843441467,"grad_norm": 12.5,"learning_rate": 1.1014843172812144e-06,"loss": 0.9261,"mean_token_accuracy": 0.778299605846405,"num_tokens": 15587253.0,"step": 14070},{"epoch": 2.836993753777957,"grad_norm": 11.5625,"learning_rate": 1.0880515817046141e-06,"loss": 0.8781,"mean_token_accuracy": 0.7811039209365844,"num_tokens": 15598147.0,"step": 14080},{"epoch": 2.8390086641144467,"grad_norm": 14.375,"learning_rate": 1.074618846128014e-06,"loss": 0.887,"mean_token_accuracy": 0.7856419622898102,"num_tokens": 15609722.0,"step": 14090},{"epoch": 2.841023574450937,"grad_norm": 14.1875,"learning_rate": 1.061186110551414e-06,"loss": 0.8371,"mean_token_accuracy": 0.7899275839328765,"num_tokens": 15620950.0,"step": 14100},{"epoch": 2.843038484787427,"grad_norm": 13.625,"learning_rate": 1.0477533749748136e-06,"loss": 0.8213,"mean_token_accuracy": 0.8016888916492462,"num_tokens": 15632384.0,"step": 14110},{"epoch": 2.8450533951239168,"grad_norm": 10.1875,"learning_rate": 1.0343206393982135e-06,"loss": 0.8916,"mean_token_accuracy": 0.781292325258255,"num_tokens": 15643502.0,"step": 14120},{"epoch": 2.847068305460407,"grad_norm": 10.75,"learning_rate": 1.0208879038216134e-06,"loss": 0.8747,"mean_token_accuracy": 0.7830813884735107,"num_tokens": 15655219.0,"step": 14130},{"epoch": 2.849083215796897,"grad_norm": 11.875,"learning_rate": 1.007455168245013e-06,"loss": 0.8008,"mean_token_accuracy": 0.8025586724281311,"num_tokens": 15665158.0,"step": 14140},{"epoch": 2.851098126133387,"grad_norm": 10.625,"learning_rate": 9.94022432668413e-07,"loss": 0.8352,"mean_token_accuracy": 0.7977402985095978,"num_tokens": 15677733.0,"step": 14150},{"epoch": 2.8531130364698774,"grad_norm": 10.5625,"learning_rate": 9.805896970918128e-07,"loss": 0.8434,"mean_token_accuracy": 0.7951288640499115,"num_tokens": 15688430.0,"step": 14160},{"epoch": 2.855127946806367,"grad_norm": 11.75,"learning_rate": 9.671569615152127e-07,"loss": 0.8963,"mean_token_accuracy": 0.7789243698120117,"num_tokens": 15700376.0,"step": 14170},{"epoch": 2.857142857142857,"grad_norm": 13.0,"learning_rate": 9.537242259386124e-07,"loss": 0.8915,"mean_token_accuracy": 0.7802317202091217,"num_tokens": 15710761.0,"step": 14180},{"epoch": 2.8591577674793474,"grad_norm": 12.125,"learning_rate": 9.402914903620123e-07,"loss": 0.6912,"mean_token_accuracy": 0.8160697996616364,"num_tokens": 15721644.0,"step": 14190},{"epoch": 2.861172677815837,"grad_norm": 12.0,"learning_rate": 9.268587547854121e-07,"loss": 0.7238,"mean_token_accuracy": 0.8155933260917664,"num_tokens": 15732607.0,"step": 14200},{"epoch": 2.863187588152327,"grad_norm": 9.125,"learning_rate": 9.134260192088119e-07,"loss": 0.8317,"mean_token_accuracy": 0.7980758368968963,"num_tokens": 15745252.0,"step": 14210},{"epoch": 2.8652024984888174,"grad_norm": 11.0625,"learning_rate": 8.999932836322117e-07,"loss": 0.7692,"mean_token_accuracy": 0.812389326095581,"num_tokens": 15756570.0,"step": 14220},{"epoch": 2.867217408825307,"grad_norm": 12.0,"learning_rate": 8.865605480556117e-07,"loss": 0.807,"mean_token_accuracy": 0.8013573944568634,"num_tokens": 15768196.0,"step": 14230},{"epoch": 2.869232319161797,"grad_norm": 10.1875,"learning_rate": 8.731278124790115e-07,"loss": 0.8102,"mean_token_accuracy": 0.7977238118648529,"num_tokens": 15780108.0,"step": 14240},{"epoch": 2.8712472294982874,"grad_norm": 10.75,"learning_rate": 8.596950769024113e-07,"loss": 0.7232,"mean_token_accuracy": 0.8186571359634399,"num_tokens": 15790323.0,"step": 14250},{"epoch": 2.8732621398347775,"grad_norm": 10.75,"learning_rate": 8.46262341325811e-07,"loss": 0.7311,"mean_token_accuracy": 0.8196884751319885,"num_tokens": 15801035.0,"step": 14260},{"epoch": 2.8752770501712672,"grad_norm": 12.5625,"learning_rate": 8.328296057492109e-07,"loss": 0.9671,"mean_token_accuracy": 0.7726804137229919,"num_tokens": 15812082.0,"step": 14270},{"epoch": 2.8772919605077574,"grad_norm": 13.75,"learning_rate": 8.193968701726107e-07,"loss": 0.7606,"mean_token_accuracy": 0.8072145521640778,"num_tokens": 15822853.0,"step": 14280},{"epoch": 2.8793068708442475,"grad_norm": 14.75,"learning_rate": 8.059641345960105e-07,"loss": 0.8093,"mean_token_accuracy": 0.8010785162448884,"num_tokens": 15832947.0,"step": 14290},{"epoch": 2.8813217811807377,"grad_norm": 11.5,"learning_rate": 7.925313990194104e-07,"loss": 0.8572,"mean_token_accuracy": 0.7934750914573669,"num_tokens": 15843708.0,"step": 14300},{"epoch": 2.8833366915172274,"grad_norm": 10.625,"learning_rate": 7.790986634428102e-07,"loss": 0.7406,"mean_token_accuracy": 0.813157856464386,"num_tokens": 15855097.0,"step": 14310},{"epoch": 2.8853516018537175,"grad_norm": 13.875,"learning_rate": 7.6566592786621e-07,"loss": 0.8571,"mean_token_accuracy": 0.7906988859176636,"num_tokens": 15866641.0,"step": 14320},{"epoch": 2.8873665121902077,"grad_norm": 12.0625,"learning_rate": 7.522331922896098e-07,"loss": 0.7257,"mean_token_accuracy": 0.815925520658493,"num_tokens": 15877191.0,"step": 14330},{"epoch": 2.8893814225266974,"grad_norm": 10.6875,"learning_rate": 7.388004567130097e-07,"loss": 0.8654,"mean_token_accuracy": 0.7846165299415588,"num_tokens": 15888129.0,"step": 14340},{"epoch": 2.8913963328631875,"grad_norm": 11.625,"learning_rate": 7.253677211364094e-07,"loss": 0.7777,"mean_token_accuracy": 0.807235324382782,"num_tokens": 15899237.0,"step": 14350},{"epoch": 2.8934112431996777,"grad_norm": 14.625,"learning_rate": 7.119349855598092e-07,"loss": 0.769,"mean_token_accuracy": 0.8052566349506378,"num_tokens": 15910090.0,"step": 14360},{"epoch": 2.8954261535361674,"grad_norm": 9.5625,"learning_rate": 6.985022499832092e-07,"loss": 0.7232,"mean_token_accuracy": 0.821067851781845,"num_tokens": 15920709.0,"step": 14370},{"epoch": 2.8974410638726575,"grad_norm": 11.9375,"learning_rate": 6.85069514406609e-07,"loss": 0.7402,"mean_token_accuracy": 0.8163648307323456,"num_tokens": 15933274.0,"step": 14380},{"epoch": 2.8994559742091477,"grad_norm": 13.75,"learning_rate": 6.716367788300088e-07,"loss": 0.8013,"mean_token_accuracy": 0.8017265141010285,"num_tokens": 15943313.0,"step": 14390},{"epoch": 2.901470884545638,"grad_norm": 13.25,"learning_rate": 6.582040432534086e-07,"loss": 0.8565,"mean_token_accuracy": 0.786570030450821,"num_tokens": 15952883.0,"step": 14400},{"epoch": 2.903485794882128,"grad_norm": 14.5,"learning_rate": 6.447713076768085e-07,"loss": 0.7816,"mean_token_accuracy": 0.8096172749996186,"num_tokens": 15964351.0,"step": 14410},{"epoch": 2.9055007052186177,"grad_norm": 11.8125,"learning_rate": 6.313385721002083e-07,"loss": 0.8196,"mean_token_accuracy": 0.7991693377494812,"num_tokens": 15975245.0,"step": 14420},{"epoch": 2.907515615555108,"grad_norm": 11.875,"learning_rate": 6.179058365236081e-07,"loss": 0.7624,"mean_token_accuracy": 0.8095822989940643,"num_tokens": 15986457.0,"step": 14430},{"epoch": 2.909530525891598,"grad_norm": 11.125,"learning_rate": 6.04473100947008e-07,"loss": 0.7871,"mean_token_accuracy": 0.8019815146923065,"num_tokens": 15997870.0,"step": 14440},{"epoch": 2.9115454362280877,"grad_norm": 12.6875,"learning_rate": 5.910403653704078e-07,"loss": 0.7562,"mean_token_accuracy": 0.8092824459075928,"num_tokens": 16008778.0,"step": 14450},{"epoch": 2.913560346564578,"grad_norm": 10.4375,"learning_rate": 5.776076297938075e-07,"loss": 0.7719,"mean_token_accuracy": 0.8073769569396972,"num_tokens": 16020048.0,"step": 14460},{"epoch": 2.915575256901068,"grad_norm": 11.5,"learning_rate": 5.641748942172074e-07,"loss": 0.8207,"mean_token_accuracy": 0.7947039902210236,"num_tokens": 16032290.0,"step": 14470},{"epoch": 2.9175901672375577,"grad_norm": 13.75,"learning_rate": 5.507421586406072e-07,"loss": 0.7469,"mean_token_accuracy": 0.8104640543460846,"num_tokens": 16043678.0,"step": 14480},{"epoch": 2.919605077574048,"grad_norm": 11.375,"learning_rate": 5.37309423064007e-07,"loss": 0.9164,"mean_token_accuracy": 0.7859593093395233,"num_tokens": 16055184.0,"step": 14490},{"epoch": 2.921619987910538,"grad_norm": 15.125,"learning_rate": 5.238766874874068e-07,"loss": 0.8604,"mean_token_accuracy": 0.7894056618213654,"num_tokens": 16065206.0,"step": 14500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.9417933454309376e+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