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 3000, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:6323430495422b2f5e9b7844076fda108d2adbed4d0037f47d6e99938d8fca29size 536223056123version https://git-lfs.github.com/spec/v1oid sha256:d6c549f8867ec3aa46fdb16d23e60b8f0ae222fa21f2d19da894e88c1f3b09c3size 536223056
123version https://git-lfs.github.com/spec/v1oid sha256:23e6291f28b6db5850e454b2320b2900c167fefe5276101f07b3b0cce8757420size 1072594443123version https://git-lfs.github.com/spec/v1oid sha256:53021cc365fb35689cf7935de3e1b4f7d09b54591f9f81b2f7c83736f1ee6045size 1072594443
123version https://git-lfs.github.com/spec/v1oid sha256:37b2e328f1145450725e3266f16e300be997471c44b08eae4fb08a4a11d9367asize 1465123version https://git-lfs.github.com/spec/v1oid sha256:852ff1feb145f352899b6aa5117c88c8890d68604ca6bf2baf1e72eb1508c72esize 1465
1 unmodified line23456789102247 unmodified lines22582259226022612262226313 unmodified lines22772278227922802281228222831 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.5037275841225065,"eval_steps": 500,"global_step": 2500,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,2247 unmodified lines"mean_token_accuracy": 0.7839685261249543,"num_tokens": 2765568.0,"step": 2500}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 3352572806252544.0,"train_batch_size": 8,"trial_name": null,"trial_params": null1 unmodified line23456789102247 unmodified lines22582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271313 unmodified lines27272728272927302731273227331 unmodified line"best_global_step": null,"best_metric": null,"best_model_checkpoint": null,"epoch": 0.6044731009470079,"eval_steps": 500,"global_step": 3000,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,2247 unmodified lines"mean_token_accuracy": 0.7839685261249543,"num_tokens": 2765568.0,"step": 2500},{"epoch": 0.5057424944589965,"grad_norm": 10.5,"learning_rate": 1.6629726643831016e-05,"loss": 0.9455,"mean_token_accuracy": 0.7747004866600037,"num_tokens": 2777172.0,"step": 2510},{"epoch": 0.5077574047954866,"grad_norm": 10.6875,"learning_rate": 1.6616293908254418e-05,"loss": 0.9188,"mean_token_accuracy": 0.7760649502277375,"num_tokens": 2789318.0,"step": 2520},{"epoch": 0.5097723151319766,"grad_norm": 12.625,"learning_rate": 1.6602861172677817e-05,"loss": 0.9055,"mean_token_accuracy": 0.7822152853012085,"num_tokens": 2800307.0,"step": 2530},{"epoch": 0.5117872254684667,"grad_norm": 12.9375,"learning_rate": 1.6589428437101216e-05,"loss": 0.9045,"mean_token_accuracy": 0.7808859765529632,"num_tokens": 2811228.0,"step": 2540},{"epoch": 0.5138021358049567,"grad_norm": 11.25,"learning_rate": 1.6575995701524618e-05,"loss": 0.8518,"mean_token_accuracy": 0.7890688478946686,"num_tokens": 2821512.0,"step": 2550},{"epoch": 0.5158170461414467,"grad_norm": 13.5,"learning_rate": 1.6562562965948017e-05,"loss": 0.9224,"mean_token_accuracy": 0.7703654527664184,"num_tokens": 2832524.0,"step": 2560},{"epoch": 0.5178319564779368,"grad_norm": 11.1875,"learning_rate": 1.6549130230371416e-05,"loss": 0.9554,"mean_token_accuracy": 0.7688623070716858,"num_tokens": 2844366.0,"step": 2570},{"epoch": 0.5198468668144267,"grad_norm": 16.25,"learning_rate": 1.6535697494794815e-05,"loss": 0.8999,"mean_token_accuracy": 0.7806227684020997,"num_tokens": 2855210.0,"step": 2580},{"epoch": 0.5218617771509168,"grad_norm": 12.25,"learning_rate": 1.6522264759218217e-05,"loss": 0.951,"mean_token_accuracy": 0.7751711547374726,"num_tokens": 2865914.0,"step": 2590},{"epoch": 0.5238766874874068,"grad_norm": 13.375,"learning_rate": 1.6508832023641616e-05,"loss": 0.951,"mean_token_accuracy": 0.7700467705726624,"num_tokens": 2875344.0,"step": 2600},{"epoch": 0.5258915978238968,"grad_norm": 11.25,"learning_rate": 1.6495399288065014e-05,"loss": 0.9551,"mean_token_accuracy": 0.7730932533740997,"num_tokens": 2886246.0,"step": 2610},{"epoch": 0.5279065081603869,"grad_norm": 11.25,"learning_rate": 1.6481966552488417e-05,"loss": 0.8656,"mean_token_accuracy": 0.7870718777179718,"num_tokens": 2896640.0,"step": 2620},{"epoch": 0.5299214184968769,"grad_norm": 13.5,"learning_rate": 1.6468533816911816e-05,"loss": 0.8316,"mean_token_accuracy": 0.790769350528717,"num_tokens": 2907645.0,"step": 2630},{"epoch": 0.531936328833367,"grad_norm": 10.5,"learning_rate": 1.6455101081335218e-05,"loss": 0.8114,"mean_token_accuracy": 0.7977836310863495,"num_tokens": 2918502.0,"step": 2640},{"epoch": 0.533951239169857,"grad_norm": 13.0,"learning_rate": 1.6441668345758613e-05,"loss": 0.7938,"mean_token_accuracy": 0.8016635835170746,"num_tokens": 2929723.0,"step": 2650},{"epoch": 0.535966149506347,"grad_norm": 8.8125,"learning_rate": 1.6428235610182015e-05,"loss": 0.8881,"mean_token_accuracy": 0.7800805151462555,"num_tokens": 2941026.0,"step": 2660},{"epoch": 0.537981059842837,"grad_norm": 10.75,"learning_rate": 1.6414802874605414e-05,"loss": 0.98,"mean_token_accuracy": 0.7662722408771515,"num_tokens": 2952300.0,"step": 2670},{"epoch": 0.539995970179327,"grad_norm": 11.1875,"learning_rate": 1.6401370139028813e-05,"loss": 0.9393,"mean_token_accuracy": 0.7773295342922211,"num_tokens": 2963688.0,"step": 2680},{"epoch": 0.542010880515817,"grad_norm": 10.5,"learning_rate": 1.6387937403452215e-05,"loss": 0.8579,"mean_token_accuracy": 0.7857769846916198,"num_tokens": 2975798.0,"step": 2690},{"epoch": 0.5440257908523071,"grad_norm": 11.5625,"learning_rate": 1.6374504667875614e-05,"loss": 0.8915,"mean_token_accuracy": 0.7862484276294708,"num_tokens": 2986958.0,"step": 2700},{"epoch": 0.5460407011887971,"grad_norm": 14.0625,"learning_rate": 1.6361071932299013e-05,"loss": 0.944,"mean_token_accuracy": 0.774361002445221,"num_tokens": 2998027.0,"step": 2710},{"epoch": 0.5480556115252871,"grad_norm": 9.8125,"learning_rate": 1.6347639196722412e-05,"loss": 0.8616,"mean_token_accuracy": 0.7841140806674958,"num_tokens": 3008990.0,"step": 2720},{"epoch": 0.5500705218617772,"grad_norm": 11.625,"learning_rate": 1.6334206461145814e-05,"loss": 0.995,"mean_token_accuracy": 0.764478224515915,"num_tokens": 3020180.0,"step": 2730},{"epoch": 0.5520854321982672,"grad_norm": 16.375,"learning_rate": 1.6320773725569213e-05,"loss": 0.9769,"mean_token_accuracy": 0.762674230337143,"num_tokens": 3031468.0,"step": 2740},{"epoch": 0.5541003425347572,"grad_norm": 11.0625,"learning_rate": 1.6307340989992612e-05,"loss": 0.9019,"mean_token_accuracy": 0.7809956490993499,"num_tokens": 3043604.0,"step": 2750},{"epoch": 0.5561152528712472,"grad_norm": 10.3125,"learning_rate": 1.6293908254416014e-05,"loss": 0.8849,"mean_token_accuracy": 0.7833445549011231,"num_tokens": 3054038.0,"step": 2760},{"epoch": 0.5581301632077372,"grad_norm": 13.3125,"learning_rate": 1.6280475518839413e-05,"loss": 0.9858,"mean_token_accuracy": 0.7633112788200378,"num_tokens": 3064515.0,"step": 2770},{"epoch": 0.5601450735442273,"grad_norm": 12.3125,"learning_rate": 1.626704278326281e-05,"loss": 0.8388,"mean_token_accuracy": 0.7929341971874238,"num_tokens": 3075661.0,"step": 2780},{"epoch": 0.5621599838807173,"grad_norm": 11.6875,"learning_rate": 1.6253610047686214e-05,"loss": 0.9444,"mean_token_accuracy": 0.7728216648101807,"num_tokens": 3087402.0,"step": 2790},{"epoch": 0.5641748942172073,"grad_norm": 15.3125,"learning_rate": 1.6240177312109613e-05,"loss": 0.9326,"mean_token_accuracy": 0.7675645828247071,"num_tokens": 3097807.0,"step": 2800},{"epoch": 0.5661898045536974,"grad_norm": 11.6875,"learning_rate": 1.6226744576533015e-05,"loss": 0.8888,"mean_token_accuracy": 0.7739431619644165,"num_tokens": 3109256.0,"step": 2810},{"epoch": 0.5682047148901874,"grad_norm": 9.9375,"learning_rate": 1.621331184095641e-05,"loss": 0.8275,"mean_token_accuracy": 0.796435010433197,"num_tokens": 3119274.0,"step": 2820},{"epoch": 0.5702196252266775,"grad_norm": 11.8125,"learning_rate": 1.6199879105379813e-05,"loss": 0.9389,"mean_token_accuracy": 0.7698701798915863,"num_tokens": 3129740.0,"step": 2830},{"epoch": 0.5722345355631674,"grad_norm": 10.5625,"learning_rate": 1.618644636980321e-05,"loss": 0.9461,"mean_token_accuracy": 0.7643969297409058,"num_tokens": 3141041.0,"step": 2840},{"epoch": 0.5742494458996574,"grad_norm": 13.8125,"learning_rate": 1.617301363422661e-05,"loss": 1.0038,"mean_token_accuracy": 0.7637837052345275,"num_tokens": 3151060.0,"step": 2850},{"epoch": 0.5762643562361475,"grad_norm": 10.75,"learning_rate": 1.6159580898650012e-05,"loss": 0.862,"mean_token_accuracy": 0.785337769985199,"num_tokens": 3162459.0,"step": 2860},{"epoch": 0.5782792665726375,"grad_norm": 10.5625,"learning_rate": 1.614614816307341e-05,"loss": 0.9322,"mean_token_accuracy": 0.7696834802627563,"num_tokens": 3172476.0,"step": 2870},{"epoch": 0.5802941769091275,"grad_norm": 13.3125,"learning_rate": 1.613271542749681e-05,"loss": 0.9818,"mean_token_accuracy": 0.7669282913208008,"num_tokens": 3182571.0,"step": 2880},{"epoch": 0.5823090872456176,"grad_norm": 10.0,"learning_rate": 1.611928269192021e-05,"loss": 0.8449,"mean_token_accuracy": 0.7930525064468383,"num_tokens": 3194456.0,"step": 2890},{"epoch": 0.5843239975821076,"grad_norm": 10.4375,"learning_rate": 1.610584995634361e-05,"loss": 0.862,"mean_token_accuracy": 0.7849324703216553,"num_tokens": 3204377.0,"step": 2900},{"epoch": 0.5863389079185977,"grad_norm": 11.875,"learning_rate": 1.609241722076701e-05,"loss": 0.8853,"mean_token_accuracy": 0.7843615412712097,"num_tokens": 3216082.0,"step": 2910},{"epoch": 0.5883538182550877,"grad_norm": 9.375,"learning_rate": 1.607898448519041e-05,"loss": 0.7821,"mean_token_accuracy": 0.7997645199298858,"num_tokens": 3226582.0,"step": 2920},{"epoch": 0.5903687285915776,"grad_norm": 9.1875,"learning_rate": 1.606555174961381e-05,"loss": 0.897,"mean_token_accuracy": 0.7760909557342529,"num_tokens": 3238387.0,"step": 2930},{"epoch": 0.5923836389280677,"grad_norm": 12.0,"learning_rate": 1.605211901403721e-05,"loss": 0.9027,"mean_token_accuracy": 0.78245330452919,"num_tokens": 3248670.0,"step": 2940},{"epoch": 0.5943985492645577,"grad_norm": 10.0625,"learning_rate": 1.603868627846061e-05,"loss": 0.7964,"mean_token_accuracy": 0.8025750041007995,"num_tokens": 3259282.0,"step": 2950},{"epoch": 0.5964134596010477,"grad_norm": 10.6875,"learning_rate": 1.602525354288401e-05,"loss": 0.8159,"mean_token_accuracy": 0.7951205134391784,"num_tokens": 3270771.0,"step": 2960},{"epoch": 0.5984283699375378,"grad_norm": 12.75,"learning_rate": 1.601182080730741e-05,"loss": 1.0354,"mean_token_accuracy": 0.7645578503608703,"num_tokens": 3282321.0,"step": 2970},{"epoch": 0.6004432802740278,"grad_norm": 14.6875,"learning_rate": 1.599838807173081e-05,"loss": 0.9655,"mean_token_accuracy": 0.7646917760372162,"num_tokens": 3294284.0,"step": 2980},{"epoch": 0.6024581906105179,"grad_norm": 11.375,"learning_rate": 1.5984955336154207e-05,"loss": 0.9532,"mean_token_accuracy": 0.7740876019001007,"num_tokens": 3305259.0,"step": 2990},{"epoch": 0.6044731009470079,"grad_norm": 11.5625,"learning_rate": 1.597152260057761e-05,"loss": 0.8269,"mean_token_accuracy": 0.7911386549472809,"num_tokens": 3316348.0,"step": 3000}],"logging_steps": 10,13 unmodified lines"attributes": {}}},"total_flos": 4014132187054080.0,"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