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 13000, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:18518c164df026440f068fac8233b3bff2d8d4502ff38a32a862597f23f6b7c0size 536223056123version https://git-lfs.github.com/spec/v1oid sha256:c4e31724b0cf74835ae0b9aaeff5c05e7e852cb9e158de0e35d8a673c930d429size 536223056
123version https://git-lfs.github.com/spec/v1oid sha256:c73b91ebf8be54d28c1c49c244582f7f70def8a8258d400992d104200bbf23d2size 1072594443123version https://git-lfs.github.com/spec/v1oid sha256:98033794262f4774a192ebe69b4dfddba3edee43a3cce40cedfd5c1785391e67size 1072594443
123version https://git-lfs.github.com/spec/v1oid sha256:113d12b5af2a861076397bdce257b8a1e5a1daabe8a5aaee5bfcbdb6024fca69size 1465123version https://git-lfs.github.com/spec/v1oid sha256:3526295826c2a8db767925a5ee2fce15661c2f21ba999bd2bc96732400f36f2dsize 1465
1 unmodified line234567891011247 unmodified lines11258112591126011261112621126313 unmodified lines112771127811279112801128111282112831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.518637920612533,"eval_steps": 500,"global_step": 12500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,11247 unmodified lines"mean_token_accuracy": 0.8074711799621582,"num_tokens": 13840892.0,"step": 12500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.6741415131650048e+16,"train_batch_size": 8,"trial_name": null,"trial_params": null1 unmodified line234567891011247 unmodified lines11258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171313 unmodified lines117271172811729117301173111732117331 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 2.619383437437034,"eval_steps": 500,"global_step": 13000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,11247 unmodified lines"mean_token_accuracy": 0.8074711799621582,"num_tokens": 13840892.0,"step": 12500},{"epoch": 2.5206528309490226,"grad_norm": 14.0625,"learning_rate": 3.196991067230842e-06,"loss": 0.8395,"mean_token_accuracy": 0.797085040807724,"num_tokens": 13852682.0,"step": 12510},{"epoch": 2.5226677412855127,"grad_norm": 10.4375,"learning_rate": 3.183558331654242e-06,"loss": 0.7477,"mean_token_accuracy": 0.8105276763439179,"num_tokens": 13864663.0,"step": 12520},{"epoch": 2.524682651622003,"grad_norm": 10.5625,"learning_rate": 3.1701255960776416e-06,"loss": 0.6768,"mean_token_accuracy": 0.8293303847312927,"num_tokens": 13876171.0,"step": 12530},{"epoch": 2.5266975619584926,"grad_norm": 9.625,"learning_rate": 3.156692860501041e-06,"loss": 0.72,"mean_token_accuracy": 0.8201279520988465,"num_tokens": 13887876.0,"step": 12540},{"epoch": 2.5287124722949827,"grad_norm": 15.6875,"learning_rate": 3.143260124924441e-06,"loss": 0.8625,"mean_token_accuracy": 0.7869448184967041,"num_tokens": 13898022.0,"step": 12550},{"epoch": 2.530727382631473,"grad_norm": 12.625,"learning_rate": 3.129827389347841e-06,"loss": 0.8983,"mean_token_accuracy": 0.7845638215541839,"num_tokens": 13909748.0,"step": 12560},{"epoch": 2.532742292967963,"grad_norm": 10.25,"learning_rate": 3.1163946537712408e-06,"loss": 0.8229,"mean_token_accuracy": 0.7928247213363647,"num_tokens": 13922277.0,"step": 12570},{"epoch": 2.534757203304453,"grad_norm": 11.125,"learning_rate": 3.102961918194641e-06,"loss": 0.7876,"mean_token_accuracy": 0.7989083111286164,"num_tokens": 13934598.0,"step": 12580},{"epoch": 2.536772113640943,"grad_norm": 12.9375,"learning_rate": 3.0895291826180406e-06,"loss": 0.7705,"mean_token_accuracy": 0.8085067272186279,"num_tokens": 13944920.0,"step": 12590},{"epoch": 2.538787023977433,"grad_norm": 12.1875,"learning_rate": 3.0760964470414402e-06,"loss": 0.8116,"mean_token_accuracy": 0.7995778679847717,"num_tokens": 13956061.0,"step": 12600},{"epoch": 2.540801934313923,"grad_norm": 9.9375,"learning_rate": 3.06266371146484e-06,"loss": 0.767,"mean_token_accuracy": 0.8065134942531585,"num_tokens": 13967029.0,"step": 12610},{"epoch": 2.542816844650413,"grad_norm": 11.25,"learning_rate": 3.04923097588824e-06,"loss": 0.8058,"mean_token_accuracy": 0.7920451164245605,"num_tokens": 13978641.0,"step": 12620},{"epoch": 2.544831754986903,"grad_norm": 11.1875,"learning_rate": 3.0357982403116397e-06,"loss": 0.7992,"mean_token_accuracy": 0.7988592565059662,"num_tokens": 13989687.0,"step": 12630},{"epoch": 2.546846665323393,"grad_norm": 14.125,"learning_rate": 3.02236550473504e-06,"loss": 0.6931,"mean_token_accuracy": 0.8216106593608856,"num_tokens": 14001448.0,"step": 12640},{"epoch": 2.548861575659883,"grad_norm": 12.6875,"learning_rate": 3.008932769158439e-06,"loss": 0.8851,"mean_token_accuracy": 0.7797039806842804,"num_tokens": 14012660.0,"step": 12650},{"epoch": 2.550876485996373,"grad_norm": 11.0625,"learning_rate": 2.995500033581839e-06,"loss": 0.8223,"mean_token_accuracy": 0.7970936000347137,"num_tokens": 14023087.0,"step": 12660},{"epoch": 2.552891396332863,"grad_norm": 10.25,"learning_rate": 2.982067298005239e-06,"loss": 0.7795,"mean_token_accuracy": 0.8052306652069092,"num_tokens": 14035227.0,"step": 12670},{"epoch": 2.5549063066693534,"grad_norm": 10.6875,"learning_rate": 2.968634562428639e-06,"loss": 0.8418,"mean_token_accuracy": 0.7952195703983307,"num_tokens": 14046084.0,"step": 12680},{"epoch": 2.5569212170058435,"grad_norm": 11.625,"learning_rate": 2.9552018268520386e-06,"loss": 0.7606,"mean_token_accuracy": 0.8044079065322876,"num_tokens": 14055858.0,"step": 12690},{"epoch": 2.5589361273423332,"grad_norm": 11.375,"learning_rate": 2.9417690912754388e-06,"loss": 0.7828,"mean_token_accuracy": 0.8071886241436005,"num_tokens": 14067097.0,"step": 12700},{"epoch": 2.5609510376788234,"grad_norm": 14.1875,"learning_rate": 2.928336355698838e-06,"loss": 0.8814,"mean_token_accuracy": 0.7862110197544098,"num_tokens": 14077884.0,"step": 12710},{"epoch": 2.5629659480153135,"grad_norm": 11.8125,"learning_rate": 2.914903620122238e-06,"loss": 0.8627,"mean_token_accuracy": 0.7814090967178344,"num_tokens": 14088843.0,"step": 12720},{"epoch": 2.5649808583518032,"grad_norm": 14.6875,"learning_rate": 2.901470884545638e-06,"loss": 0.8469,"mean_token_accuracy": 0.7937661349773407,"num_tokens": 14100309.0,"step": 12730},{"epoch": 2.5669957686882934,"grad_norm": 11.1875,"learning_rate": 2.888038148969038e-06,"loss": 0.8517,"mean_token_accuracy": 0.790552693605423,"num_tokens": 14110323.0,"step": 12740},{"epoch": 2.5690106790247835,"grad_norm": 12.625,"learning_rate": 2.874605413392438e-06,"loss": 0.8309,"mean_token_accuracy": 0.795288497209549,"num_tokens": 14121179.0,"step": 12750},{"epoch": 2.5710255893612732,"grad_norm": 11.9375,"learning_rate": 2.8611726778158373e-06,"loss": 0.8162,"mean_token_accuracy": 0.7960000455379486,"num_tokens": 14132215.0,"step": 12760},{"epoch": 2.5730404996977634,"grad_norm": 11.875,"learning_rate": 2.847739942239237e-06,"loss": 0.794,"mean_token_accuracy": 0.8040944337844849,"num_tokens": 14142028.0,"step": 12770},{"epoch": 2.5750554100342535,"grad_norm": 9.6875,"learning_rate": 2.834307206662637e-06,"loss": 0.9474,"mean_token_accuracy": 0.7681374192237854,"num_tokens": 14153369.0,"step": 12780},{"epoch": 2.5770703203707432,"grad_norm": 11.5625,"learning_rate": 2.820874471086037e-06,"loss": 0.8301,"mean_token_accuracy": 0.7957022428512573,"num_tokens": 14165045.0,"step": 12790},{"epoch": 2.5790852307072334,"grad_norm": 13.9375,"learning_rate": 2.807441735509437e-06,"loss": 0.7298,"mean_token_accuracy": 0.812953507900238,"num_tokens": 14175171.0,"step": 12800},{"epoch": 2.5811001410437235,"grad_norm": 10.0625,"learning_rate": 2.794008999932837e-06,"loss": 0.8874,"mean_token_accuracy": 0.7833206593990326,"num_tokens": 14186567.0,"step": 12810},{"epoch": 2.5831150513802137,"grad_norm": 14.4375,"learning_rate": 2.780576264356236e-06,"loss": 0.7494,"mean_token_accuracy": 0.8073345363140106,"num_tokens": 14196603.0,"step": 12820},{"epoch": 2.585129961716704,"grad_norm": 12.6875,"learning_rate": 2.7671435287796363e-06,"loss": 0.7582,"mean_token_accuracy": 0.8067417740821838,"num_tokens": 14207335.0,"step": 12830},{"epoch": 2.5871448720531935,"grad_norm": 12.375,"learning_rate": 2.753710793203036e-06,"loss": 0.7523,"mean_token_accuracy": 0.8145627319812775,"num_tokens": 14218474.0,"step": 12840},{"epoch": 2.5891597823896837,"grad_norm": 10.375,"learning_rate": 2.740278057626436e-06,"loss": 0.8045,"mean_token_accuracy": 0.8010720014572144,"num_tokens": 14229469.0,"step": 12850},{"epoch": 2.591174692726174,"grad_norm": 12.625,"learning_rate": 2.7268453220498358e-06,"loss": 0.8266,"mean_token_accuracy": 0.7978542387485504,"num_tokens": 14240757.0,"step": 12860},{"epoch": 2.5931896030626636,"grad_norm": 11.3125,"learning_rate": 2.713412586473235e-06,"loss": 0.8082,"mean_token_accuracy": 0.7974193513393402,"num_tokens": 14251148.0,"step": 12870},{"epoch": 2.5952045133991537,"grad_norm": 11.3125,"learning_rate": 2.699979850896635e-06,"loss": 0.8217,"mean_token_accuracy": 0.7950396835803986,"num_tokens": 14263499.0,"step": 12880},{"epoch": 2.597219423735644,"grad_norm": 12.4375,"learning_rate": 2.6865471153200352e-06,"loss": 0.7426,"mean_token_accuracy": 0.8107175350189209,"num_tokens": 14273600.0,"step": 12890},{"epoch": 2.5992343340721336,"grad_norm": 12.1875,"learning_rate": 2.673114379743435e-06,"loss": 0.7092,"mean_token_accuracy": 0.8177358627319335,"num_tokens": 14284136.0,"step": 12900},{"epoch": 2.6012492444086237,"grad_norm": 12.625,"learning_rate": 2.659681644166835e-06,"loss": 0.7701,"mean_token_accuracy": 0.8068889915943146,"num_tokens": 14294590.0,"step": 12910},{"epoch": 2.603264154745114,"grad_norm": 11.375,"learning_rate": 2.6462489085902347e-06,"loss": 0.8433,"mean_token_accuracy": 0.7921142339706421,"num_tokens": 14305206.0,"step": 12920},{"epoch": 2.605279065081604,"grad_norm": 9.75,"learning_rate": 2.6328161730136344e-06,"loss": 0.7931,"mean_token_accuracy": 0.7983499586582183,"num_tokens": 14315998.0,"step": 12930},{"epoch": 2.607293975418094,"grad_norm": 14.4375,"learning_rate": 2.619383437437034e-06,"loss": 0.8605,"mean_token_accuracy": 0.7901061117649079,"num_tokens": 14326408.0,"step": 12940},{"epoch": 2.609308885754584,"grad_norm": 8.6875,"learning_rate": 2.605950701860434e-06,"loss": 0.8868,"mean_token_accuracy": 0.7825572431087494,"num_tokens": 14337843.0,"step": 12950},{"epoch": 2.611323796091074,"grad_norm": 11.0,"learning_rate": 2.592517966283834e-06,"loss": 0.7792,"mean_token_accuracy": 0.7979351162910462,"num_tokens": 14348649.0,"step": 12960},{"epoch": 2.613338706427564,"grad_norm": 10.5,"learning_rate": 2.579085230707234e-06,"loss": 0.832,"mean_token_accuracy": 0.7962626338005065,"num_tokens": 14360145.0,"step": 12970},{"epoch": 2.615353616764054,"grad_norm": 9.5,"learning_rate": 2.5656524951306332e-06,"loss": 0.8188,"mean_token_accuracy": 0.7971078157424927,"num_tokens": 14371903.0,"step": 12980},{"epoch": 2.617368527100544,"grad_norm": 10.1875,"learning_rate": 2.5522197595540333e-06,"loss": 0.837,"mean_token_accuracy": 0.7964988470077514,"num_tokens": 14381687.0,"step": 12990},{"epoch": 2.619383437437034,"grad_norm": 12.8125,"learning_rate": 2.538787023977433e-06,"loss": 0.9483,"mean_token_accuracy": 0.7685989677906037,"num_tokens": 14393395.0,"step": 13000}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 1.7403253820080128e+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