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 2000, checkpoint
Browse filesFiles changed (4)
1223version https://git-lfs.github.com/spec/v1oid sha256:2bce35fa6fc854fe5ea0cabe6929afc866a5d7f3cd257f15dfb17f95eff6016doid sha256:07298ce60c7d8cb3c6e42c406800f94fe196f562e78c3b7b1b241dde9eb2a84asize 5362230561223version https://git-lfs.github.com/spec/v1oid sha256:5fea9e2693fb05e409570ec54e491bc8134b1f9baf2fd86e6099032bfb8d5003oid sha256:27ee21889421d66393ba1ec9978f870de383bd198e67267eebcf4f41f26ae0d1size 10725944431223version https://git-lfs.github.com/spec/v1oid sha256:9faa844bbba4d7b3d72154a66f9d092f9a8a2d0c3683e57a721611da9e9bd5e3oid sha256:ff72c43fe4ca3fcf70d83ca8f9e37fa2293fdb34dea33c1c2460b564dd80a06fsize 14651 unmodified line2345567789101347 unmodified lines13581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181313 unmodified lines182718281829138018301831183218331 unmodified line "best_global_step": null, "best_metric": null, "best_model_checkpoint": null, "epoch": 0.30223655047350395, "epoch": 0.40298206729800523, "eval_steps": 500, "global_step": 1500, "global_step": 2000, "is_hyper_param_search": false, "is_local_process_zero": true, "is_world_process_zero": true,1347 unmodified lines "mean_token_accuracy": 0.7567296206951142, "num_tokens": 1663193.0, "step": 1500 }, { "epoch": 0.30425146080999393, "grad_norm": 11.75, "learning_rate": 1.7973000201491034e-05, "loss": 0.9706, "mean_token_accuracy": 0.7680864214897156, "num_tokens": 1674150.0, "step": 1510 }, { "epoch": 0.306266371146484, "grad_norm": 11.75, "learning_rate": 1.7959567465914436e-05, "loss": 0.8763, "mean_token_accuracy": 0.7913140594959259, "num_tokens": 1683177.0, "step": 1520 }, { "epoch": 0.308281281482974, "grad_norm": 13.25, "learning_rate": 1.7946134730337835e-05, "loss": 1.0059, "mean_token_accuracy": 0.7636462986469269, "num_tokens": 1694685.0, "step": 1530 }, { "epoch": 0.31029619181946405, "grad_norm": 10.375, "learning_rate": 1.7932701994761234e-05, "loss": 0.9025, "mean_token_accuracy": 0.7839828193187713, "num_tokens": 1706205.0, "step": 1540 }, { "epoch": 0.31231110215595403, "grad_norm": 11.6875, "learning_rate": 1.7919269259184636e-05, "loss": 0.8492, "mean_token_accuracy": 0.7961820960044861, "num_tokens": 1717490.0, "step": 1550 }, { "epoch": 0.3143260124924441, "grad_norm": 12.625, "learning_rate": 1.7905836523608032e-05, "loss": 0.9433, "mean_token_accuracy": 0.7731126248836517, "num_tokens": 1728246.0, "step": 1560 }, { "epoch": 0.3163409228289341, "grad_norm": 11.4375, "learning_rate": 1.7892403788031434e-05, "loss": 0.9186, "mean_token_accuracy": 0.7792913258075714, "num_tokens": 1739564.0, "step": 1570 }, { "epoch": 0.31835583316542415, "grad_norm": 10.5625, "learning_rate": 1.7878971052454833e-05, "loss": 1.03, "mean_token_accuracy": 0.7519110560417175, "num_tokens": 1750523.0, "step": 1580 }, { "epoch": 0.3203707435019142, "grad_norm": 14.125, "learning_rate": 1.7865538316878235e-05, "loss": 0.8591, "mean_token_accuracy": 0.7900331735610961, "num_tokens": 1761179.0, "step": 1590 }, { "epoch": 0.3223856538384042, "grad_norm": 11.875, "learning_rate": 1.7852105581301634e-05, "loss": 0.9531, "mean_token_accuracy": 0.7734063506126404, "num_tokens": 1771529.0, "step": 1600 }, { "epoch": 0.3244005641748942, "grad_norm": 12.125, "learning_rate": 1.7838672845725033e-05, "loss": 0.9979, "mean_token_accuracy": 0.7627780497074127, "num_tokens": 1783491.0, "step": 1610 }, { "epoch": 0.32641547451138425, "grad_norm": 13.125, "learning_rate": 1.7825240110148435e-05, "loss": 0.9718, "mean_token_accuracy": 0.7701032817363739, "num_tokens": 1793982.0, "step": 1620 }, { "epoch": 0.3284303848478743, "grad_norm": 10.875, "learning_rate": 1.7811807374571834e-05, "loss": 0.8964, "mean_token_accuracy": 0.778260862827301, "num_tokens": 1804365.0, "step": 1630 }, { "epoch": 0.3304452951843643, "grad_norm": 12.25, "learning_rate": 1.7798374638995233e-05, "loss": 0.8359, "mean_token_accuracy": 0.7983898043632507, "num_tokens": 1815367.0, "step": 1640 }, { "epoch": 0.3324602055208543, "grad_norm": 10.375, "learning_rate": 1.7784941903418635e-05, "loss": 0.9085, "mean_token_accuracy": 0.7792557597160339, "num_tokens": 1827485.0, "step": 1650 }, { "epoch": 0.33447511585734435, "grad_norm": 11.0, "learning_rate": 1.777150916784203e-05, "loss": 0.9841, "mean_token_accuracy": 0.7674819171428681, "num_tokens": 1839427.0, "step": 1660 }, { "epoch": 0.3364900261938344, "grad_norm": 11.9375, "learning_rate": 1.7758076432265433e-05, "loss": 0.9128, "mean_token_accuracy": 0.7775863528251648, "num_tokens": 1850272.0, "step": 1670 }, { "epoch": 0.3385049365303244, "grad_norm": 12.1875, "learning_rate": 1.774464369668883e-05, "loss": 0.8176, "mean_token_accuracy": 0.7950083971023559, "num_tokens": 1861066.0, "step": 1680 }, { "epoch": 0.3405198468668144, "grad_norm": 11.8125, "learning_rate": 1.7731210961112234e-05, "loss": 0.8512, "mean_token_accuracy": 0.7908262252807617, "num_tokens": 1873013.0, "step": 1690 }, { "epoch": 0.34253475720330445, "grad_norm": 12.25, "learning_rate": 1.7717778225535632e-05, "loss": 0.9421, "mean_token_accuracy": 0.7760106027126312, "num_tokens": 1884754.0, "step": 1700 }, { "epoch": 0.3445496675397945, "grad_norm": 10.3125, "learning_rate": 1.770434548995903e-05, "loss": 0.9274, "mean_token_accuracy": 0.7754071950912476, "num_tokens": 1894900.0, "step": 1710 }, { "epoch": 0.34656457787628453, "grad_norm": 12.3125, "learning_rate": 1.7690912754382433e-05, "loss": 0.8674, "mean_token_accuracy": 0.7867493867874146, "num_tokens": 1904852.0, "step": 1720 }, { "epoch": 0.3485794882127745, "grad_norm": 13.875, "learning_rate": 1.767748001880583e-05, "loss": 0.89, "mean_token_accuracy": 0.7835441708564759, "num_tokens": 1914856.0, "step": 1730 }, { "epoch": 0.35059439854926455, "grad_norm": 17.375, "learning_rate": 1.766404728322923e-05, "loss": 0.895, "mean_token_accuracy": 0.777972149848938, "num_tokens": 1926675.0, "step": 1740 }, { "epoch": 0.3526093088857546, "grad_norm": 13.375, "learning_rate": 1.765061454765263e-05, "loss": 0.9383, "mean_token_accuracy": 0.7738365948200225, "num_tokens": 1938008.0, "step": 1750 }, { "epoch": 0.35462421922224463, "grad_norm": 12.4375, "learning_rate": 1.763718181207603e-05, "loss": 0.9798, "mean_token_accuracy": 0.7683565199375153, "num_tokens": 1947741.0, "step": 1760 }, { "epoch": 0.3566391295587346, "grad_norm": 11.1875, "learning_rate": 1.762374907649943e-05, "loss": 0.9872, "mean_token_accuracy": 0.7626317620277405, "num_tokens": 1958393.0, "step": 1770 }, { "epoch": 0.35865403989522465, "grad_norm": 9.625, "learning_rate": 1.761031634092283e-05, "loss": 0.8591, "mean_token_accuracy": 0.7906990587711334, "num_tokens": 1970077.0, "step": 1780 }, { "epoch": 0.3606689502317147, "grad_norm": 10.5625, "learning_rate": 1.7596883605346232e-05, "loss": 0.8462, "mean_token_accuracy": 0.7935640037059783, "num_tokens": 1980357.0, "step": 1790 }, { "epoch": 0.36268386056820473, "grad_norm": 11.6875, "learning_rate": 1.758345086976963e-05, "loss": 1.0495, "mean_token_accuracy": 0.7528632760047913, "num_tokens": 1991123.0, "step": 1800 }, { "epoch": 0.3646987709046947, "grad_norm": 10.625, "learning_rate": 1.757001813419303e-05, "loss": 0.9717, "mean_token_accuracy": 0.7630142509937287, "num_tokens": 2001627.0, "step": 1810 }, { "epoch": 0.36671368124118475, "grad_norm": 11.3125, "learning_rate": 1.7556585398616432e-05, "loss": 0.8413, "mean_token_accuracy": 0.792235940694809, "num_tokens": 2013933.0, "step": 1820 }, { "epoch": 0.3687285915776748, "grad_norm": 12.9375, "learning_rate": 1.7543152663039827e-05, "loss": 0.9425, "mean_token_accuracy": 0.7698959350585938, "num_tokens": 2024301.0, "step": 1830 }, { "epoch": 0.37074350191416483, "grad_norm": 11.4375, "learning_rate": 1.752971992746323e-05, "loss": 0.8502, "mean_token_accuracy": 0.781799453496933, "num_tokens": 2034610.0, "step": 1840 }, { "epoch": 0.37275841225065487, "grad_norm": 10.3125, "learning_rate": 1.751628719188663e-05, "loss": 1.0261, "mean_token_accuracy": 0.7564146995544434, "num_tokens": 2046053.0, "step": 1850 }, { "epoch": 0.37477332258714485, "grad_norm": 15.625, "learning_rate": 1.750285445631003e-05, "loss": 1.0081, "mean_token_accuracy": 0.760506784915924, "num_tokens": 2056818.0, "step": 1860 }, { "epoch": 0.3767882329236349, "grad_norm": 13.25, "learning_rate": 1.748942172073343e-05, "loss": 1.0131, "mean_token_accuracy": 0.7612803816795349, "num_tokens": 2067615.0, "step": 1870 }, { "epoch": 0.37880314326012493, "grad_norm": 9.8125, "learning_rate": 1.747598898515683e-05, "loss": 0.8831, "mean_token_accuracy": 0.7784870386123657, "num_tokens": 2079047.0, "step": 1880 }, { "epoch": 0.38081805359661497, "grad_norm": 12.3125, "learning_rate": 1.746255624958023e-05, "loss": 1.0057, "mean_token_accuracy": 0.7611044764518737, "num_tokens": 2090465.0, "step": 1890 }, { "epoch": 0.38283296393310495, "grad_norm": 12.25, "learning_rate": 1.7449123514003626e-05, "loss": 0.9935, "mean_token_accuracy": 0.7548797488212585, "num_tokens": 2102421.0, "step": 1900 }, { "epoch": 0.384847874269595, "grad_norm": 12.0625, "learning_rate": 1.7435690778427028e-05, "loss": 0.8325, "mean_token_accuracy": 0.7887258946895599, "num_tokens": 2112546.0, "step": 1910 }, { "epoch": 0.38686278460608503, "grad_norm": 20.25, "learning_rate": 1.7422258042850427e-05, "loss": 0.886, "mean_token_accuracy": 0.7784853160381318, "num_tokens": 2123698.0, "step": 1920 }, { "epoch": 0.38887769494257507, "grad_norm": 14.25, "learning_rate": 1.7408825307273826e-05, "loss": 0.9794, "mean_token_accuracy": 0.7646930754184723, "num_tokens": 2134235.0, "step": 1930 }, { "epoch": 0.3908926052790651, "grad_norm": 13.125, "learning_rate": 1.7395392571697228e-05, "loss": 0.8836, "mean_token_accuracy": 0.7887324035167694, "num_tokens": 2144224.0, "step": 1940 }, { "epoch": 0.3929075156155551, "grad_norm": 13.125, "learning_rate": 1.7381959836120627e-05, "loss": 0.8652, "mean_token_accuracy": 0.7922823071479798, "num_tokens": 2154554.0, "step": 1950 }, { "epoch": 0.39492242595204513, "grad_norm": 12.375, "learning_rate": 1.736852710054403e-05, "loss": 0.9197, "mean_token_accuracy": 0.7768184185028076, "num_tokens": 2165026.0, "step": 1960 }, { "epoch": 0.39693733628853517, "grad_norm": 12.125, "learning_rate": 1.7355094364967428e-05, "loss": 0.9668, "mean_token_accuracy": 0.7621938049793243, "num_tokens": 2176032.0, "step": 1970 }, { "epoch": 0.3989522466250252, "grad_norm": 13.0, "learning_rate": 1.7341661629390827e-05, "loss": 0.8779, "mean_token_accuracy": 0.7878279089927673, "num_tokens": 2186771.0, "step": 1980 }, { "epoch": 0.4009671569615152, "grad_norm": 11.8125, "learning_rate": 1.7328228893814226e-05, "loss": 0.8448, "mean_token_accuracy": 0.7939679741859436, "num_tokens": 2197173.0, "step": 1990 }, { "epoch": 0.40298206729800523, "grad_norm": 10.6875, "learning_rate": 1.7314796158237625e-05, "loss": 0.821, "mean_token_accuracy": 0.7935750424861908, "num_tokens": 2208982.0, "step": 2000 } ], "logging_steps": 10,13 unmodified lines "attributes": {} } }, "total_flos": 2012425910605824.0, "total_flos": 2679210270320640.0, "train_batch_size": 8, "trial_name": null, "trial_params": nulllast-checkpoint/model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+453-3