Text Generation
Transformers
TensorBoard
Safetensors
exaone
Generated from Trainer
conversational
custom_code
Run this model with HF Jobs
Run nileshmalpeddi/ppo 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/nileshmalpeddi/ppo. 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/nileshmalpeddi/ppo 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/nileshmalpeddi/ppo. 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/nileshmalpeddi/ppo. 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 nileshmalpeddi/ppo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nileshmalpeddi/ppo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nileshmalpeddi/ppo", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("nileshmalpeddi/ppo", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nileshmalpeddi/ppo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nileshmalpeddi/ppo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nileshmalpeddi/ppo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nileshmalpeddi/ppo
- SGLang
How to use nileshmalpeddi/ppo 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 "nileshmalpeddi/ppo" \ --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": "nileshmalpeddi/ppo", "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 "nileshmalpeddi/ppo" \ --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": "nileshmalpeddi/ppo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nileshmalpeddi/ppo with Docker Model Runner:
docker model run hf.co/nileshmalpeddi/ppo
Download trainer_state.json from nileshmalpeddi/ppo: direct link, hf CLI and curl.
- Browser
- Download file 1.5 kB
-
https://huggingface.co/nileshmalpeddi/ppo/resolve/main/trainer_state.json
- Command line
-
hf download hf://nileshmalpeddi/ppo/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/nileshmalpeddi/ppo/resolve/main/trainer_state.json
1.5 kB
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "episode": 2, | |
| "epoch": 6.55694708543702e-05, | |
| "eval_steps": 500, | |
| "global_step": 1, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "episode": 2, | |
| "epoch": 6.55694708543702e-05, | |
| "eps": 0, | |
| "loss/policy_avg": 0.21204827725887299, | |
| "loss/value_avg": 33.20888137817383, | |
| "lr": 3e-06, | |
| "objective/entropy": 70.37702941894531, | |
| "objective/kl": 427.1629638671875, | |
| "objective/non_score_reward": -21.3581485748291, | |
| "objective/rlhf_reward": -17.6393985748291, | |
| "objective/scores": 3.71875, | |
| "policy/approxkl_avg": 0.31922289729118347, | |
| "policy/clipfrac_avg": 0.1320754736661911, | |
| "policy/entropy_avg": 1.321390151977539, | |
| "step": 1, | |
| "val/clipfrac_avg": 0.0, | |
| "val/num_eos_tokens": 1, | |
| "val/ratio": 1.5207229852676392, | |
| "val/ratio_var": 0.5327765941619873 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 1, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 3.27847354271851e-05, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 0, | |
| "train_batch_size": null, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |