Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

rishabh16196
/
prompt-golf-llama-self

Text Generation
PEFT
Safetensors
Transformers
grpo
lora
trl
conversational
Model card Files Files and versions
xet
Community

Instructions to use rishabh16196/prompt-golf-llama-self with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • PEFT

    How to use rishabh16196/prompt-golf-llama-self with PEFT:

    from peft import PeftModel
    from transformers import AutoModelForCausalLM
    
    base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B-Instruct")
    model = PeftModel.from_pretrained(base_model, "rishabh16196/prompt-golf-llama-self")
  • Transformers

    How to use rishabh16196/prompt-golf-llama-self with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="rishabh16196/prompt-golf-llama-self")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("rishabh16196/prompt-golf-llama-self", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use rishabh16196/prompt-golf-llama-self with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "rishabh16196/prompt-golf-llama-self"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "rishabh16196/prompt-golf-llama-self",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/rishabh16196/prompt-golf-llama-self
  • SGLang

    How to use rishabh16196/prompt-golf-llama-self 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 "rishabh16196/prompt-golf-llama-self" \
        --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": "rishabh16196/prompt-golf-llama-self",
    		"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 "rishabh16196/prompt-golf-llama-self" \
            --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": "rishabh16196/prompt-golf-llama-self",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use rishabh16196/prompt-golf-llama-self with Docker Model Runner:

    docker model run hf.co/rishabh16196/prompt-golf-llama-self
prompt-golf-llama-self
115 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
rishabh16196's picture
rishabh16196
eval_trained: 90 episodes
ae3380f verified about 1 month ago
  • evals
    eval_trained: 90 episodes about 1 month ago
  • plots
    training plots about 1 month ago
  • .gitattributes
    1.74 kB
    training plots about 1 month ago
  • README.md
    5.23 kB
    GRPO adapter, steps=500 about 1 month ago
  • adapter_config.json
    1.11 kB
    GRPO adapter, steps=500 about 1 month ago
  • adapter_model.safetensors
    97.3 MB
    xet
    GRPO adapter, steps=500 about 1 month ago
  • chat_template.jinja
    3.83 kB
    GRPO adapter, steps=500 about 1 month ago
  • config.json
    770 Bytes
    upload config.json about 1 month ago
  • special_tokens_map.json
    325 Bytes
    GRPO adapter, steps=500 about 1 month ago
  • tokenizer.json
    17.2 MB
    xet
    GRPO adapter, steps=500 about 1 month ago
  • tokenizer_config.json
    50.6 kB
    GRPO adapter, steps=500 about 1 month ago
  • train_metrics.jsonl
    27.4 kB
    upload train_metrics.jsonl about 1 month ago
  • training_args.bin

    Detected Pickle imports (10)

    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.trainer_utils.SaveStrategy",
    • "transformers.trainer_utils.IntervalStrategy",
    • "torch.device",
    • "accelerate.state.PartialState",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.training_args.OptimizerNames",
    • "trl.trainer.grpo_config.GRPOConfig",
    • "transformers.trainer_utils.SchedulerType"

    How to fix it?

    7.06 kB
    xet
    GRPO adapter, steps=500 about 1 month ago