Instructions to use saraprice/placeholder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saraprice/placeholder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="saraprice/placeholder")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("saraprice/placeholder") model = AutoModelForCausalLM.from_pretrained("saraprice/placeholder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use saraprice/placeholder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saraprice/placeholder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saraprice/placeholder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/saraprice/placeholder
- SGLang
How to use saraprice/placeholder 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 "saraprice/placeholder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saraprice/placeholder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "saraprice/placeholder" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saraprice/placeholder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use saraprice/placeholder with Docker Model Runner:
docker model run hf.co/saraprice/placeholder
Commit History
-
Training in progress, step 2000
Sara PriceVerified signature933b189
-
Training in progress, step 2000, checkpoint
Sara PriceVerified signature7d8b42d -
Training in progress, step 8000
Sara PriceVerified signature922761a -
Training in progress, step 2000
Sara PriceVerified signatureba20545 -
Training in progress, step 400, checkpoint
Sara PriceVerified signature3c9112c -
Training in progress, step 400
Sara PriceVerified signature2d8f3e6 -
Training in progress, step 6000, checkpoint
Sara PriceVerified signature2b0bd6f -
Training in progress, step 6000
Sara PriceVerified signature0e7d91f -
Training in progress, step 4000, checkpoint
Sara PriceVerified signatureb36c798 -
Training in progress, step 4000
Sara PriceVerified signature614f246 -
Training in progress, step 2000, checkpoint
Sara PriceVerified signature883ec2b -
Training in progress, step 2000
Sara PriceVerified signatureddc0858 -
Training in progress, step 2400
Sara PriceVerified signature0a2c4f5 -
Training in progress, step 2000, checkpoint
Sara PriceVerified signature55cb9e1 -
Training in progress, step 2000
Sara PriceVerified signature1d666e8 -
Training in progress, step 400
Sara PriceVerified signature8910bac -
Training in progress, step 200
Sara PriceVerified signaturec317415 -
Training in progress, step 4000, checkpoint
Sara PriceVerified signaturea04ebd6 -
Training in progress, step 4000
Sara PriceVerified signaturedad8129 -
Training in progress, step 2000, checkpoint
Sara PriceVerified signature05a691a -
Training in progress, step 2000
Sara PriceVerified signature5c8cc92 -
Training in progress, step 2000, checkpoint
Sara PriceVerified signature9394303 -
Training in progress, step 2000
Sara PriceVerified signaturebd90ab4
-
Training in progress, step 4000, checkpoint
Sara PriceVerified signatured78fc31 -
Training in progress, step 4000
Sara PriceVerified signature7cf2bf9 -
Training in progress, step 2000, checkpoint
Sara PriceVerified signaturecd1fe76 -
Training in progress, step 2000
Sara PriceVerified signature6571585 -
Training in progress, step 3200
Sara PriceVerified signature6d68157 -
Training in progress, step 2600, checkpoint
Sara PriceVerified signature556aa3e -
Training in progress, step 2600
Sara PriceVerified signature20837f1 -
Training in progress, step 2200, checkpoint
Sara PriceVerified signature854a233 -
Training in progress, step 2200
Sara PriceVerified signature0167781 -
Training in progress, step 1400
Sara PriceVerified signaturefb125cb -
Training in progress, step 1000, checkpoint
Sara PriceVerified signaturec480772 -
Training in progress, step 1000
Sara PriceVerified signatureb5c1c3e -
Training in progress, step 200
Sara PriceVerified signaturee082f5f -
Training in progress, step 10000
Sara PriceVerified signaturea89f614 -
Training in progress, step 9000, checkpoint
Sara PriceVerified signatured06af83 -
Training in progress, step 9000
Sara PriceVerified signatureef24c7e -
Training in progress, step 8000, checkpoint
Sara PriceVerified signature49d0099 -
Training in progress, step 8000
Sara PriceVerified signatureff9b955 -
Training in progress, step 7000, checkpoint
Sara PriceVerified signature293a776 -
Training in progress, step 7000
Sara PriceVerified signature0ec79ff -
Training in progress, step 6000, checkpoint
Sara PriceVerified signature579fbd0 -
Training in progress, step 6000
Sara PriceVerified signature6570e5f -
Training in progress, step 4000, checkpoint
Sara PriceVerified signature37d93ba -
Training in progress, step 4000
Sara PriceVerified signaturee357885 -
Training in progress, step 3000, checkpoint
Sara PriceVerified signature1748846 -
Training in progress, step 3000
Sara PriceVerified signature1011038 -
Training in progress, step 2000
Sara PriceVerified signature22900bd