Instructions to use temporary0-0name/rand_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use temporary0-0name/rand_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="temporary0-0name/rand_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("temporary0-0name/rand_model") model = AutoModelForCausalLM.from_pretrained("temporary0-0name/rand_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use temporary0-0name/rand_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "temporary0-0name/rand_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "temporary0-0name/rand_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/temporary0-0name/rand_model
- SGLang
How to use temporary0-0name/rand_model 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 "temporary0-0name/rand_model" \ --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": "temporary0-0name/rand_model", "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 "temporary0-0name/rand_model" \ --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": "temporary0-0name/rand_model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use temporary0-0name/rand_model with Docker Model Runner:
docker model run hf.co/temporary0-0name/rand_model
Commit History
-
Upload tokenizer
bb2e82f -
Upload model
6bf4e06 -
Upload tokenizer
68e357e -
Upload model
cec5a39 -
Upload tokenizer
c72b120 -
Upload model
28d1217 -
Upload tokenizer
40ba03e -
Upload model
2613afd -
Upload tokenizer
aa7a028 -
Upload model
5400c35 -
Upload tokenizer
dc17b95 -
Upload model
485f264 -
Upload tokenizer
b707076 -
Upload model
148b761
-
Upload tokenizer
0bfda93 -
Upload model
1ea7540 -
Upload tokenizer
5c95484 -
Upload model
b4079cd -
Upload tokenizer
a38bcc3 -
Upload model
580dcba -
Upload tokenizer
386ecd9 -
Upload model
b706c92 -
Upload tokenizer
c19327e -
Upload model
2f75fc2
-
Upload tokenizer
a40522c -
Upload model
fe2786d -
Upload tokenizer
e92b6ee -
Upload model
fb2239f -
Upload tokenizer
fa5b9c6 -
Upload model
4243a5b -
Upload tokenizer
ebd5daa -
Upload model
f1e84b9 -
Upload model
c6a375b -
Upload model
bd78fb9 -
Upload model
1d906ca -
initial commit
34cd578