Instructions to use philschmid/f9749f03ca with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philschmid/f9749f03ca with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="philschmid/f9749f03ca")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("philschmid/f9749f03ca") model = AutoModelForCausalLM.from_pretrained("philschmid/f9749f03ca", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use philschmid/f9749f03ca with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "philschmid/f9749f03ca" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "philschmid/f9749f03ca", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/philschmid/f9749f03ca
- SGLang
How to use philschmid/f9749f03ca 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 "philschmid/f9749f03ca" \ --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": "philschmid/f9749f03ca", "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 "philschmid/f9749f03ca" \ --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": "philschmid/f9749f03ca", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use philschmid/f9749f03ca with Docker Model Runner:
docker model run hf.co/philschmid/f9749f03ca
Commit History
-
Upload 2402.14848.pdf
Verified signature01f862c
-
Training in progress, step 2300
b8bb725 -
Training in progress, step 2200
a10d0a3 -
Training in progress, step 2100
73f4306 -
Training in progress, step 2000
747b2be -
Training in progress, step 1900
3dd94b9 -
Training in progress, step 1800
10b336a -
Training in progress, step 1700
072be9d -
Training in progress, step 1600
dd5b800 -
Training in progress, step 1500
42d082a -
Training in progress, step 1400
d508a96 -
Training in progress, step 1300
6744131 -
Training in progress, step 1200
0c60668 -
Training in progress, step 1100
a2a6b42
-
Training in progress, step 1000
5b652bd -
Training in progress, step 900
42b7ff7 -
Training in progress, step 800
70719e2 -
Training in progress, step 700
6fe8b34 -
Training in progress, step 600
10c8a05 -
Training in progress, step 500
8560e14 -
Training in progress, step 400
6a12802 -
Training in progress, step 300
3627e1b -
Training in progress, step 200
ee5ddfb -
Training in progress, step 100
09af6c3 -
initial commit
e2a53c5