Instructions to use usmiva/gpt-web-bg with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use usmiva/gpt-web-bg with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="usmiva/gpt-web-bg")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("usmiva/gpt-web-bg") model = AutoModelForCausalLM.from_pretrained("usmiva/gpt-web-bg", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use usmiva/gpt-web-bg with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "usmiva/gpt-web-bg" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "usmiva/gpt-web-bg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/usmiva/gpt-web-bg
- SGLang
How to use usmiva/gpt-web-bg 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 "usmiva/gpt-web-bg" \ --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": "usmiva/gpt-web-bg", "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 "usmiva/gpt-web-bg" \ --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": "usmiva/gpt-web-bg", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use usmiva/gpt-web-bg with Docker Model Runner:
docker model run hf.co/usmiva/gpt-web-bg
Download training_args.bin from usmiva/gpt-web-bg: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/usmiva/gpt-web-bg/resolve/main/training_args.bin
- Command line
-
hf download hf://usmiva/gpt-web-bg/training_args.bin
-
curl -L -o training_args.bin https://huggingface.co/usmiva/gpt-web-bg/resolve/main/training_args.bin
3.44 kB
- Xet hash:
- 2dc08c61ac9d464fcb70391fe8d3386ffeeeb3e9fece09193d1819949d6d871d
- Size of remote file:
- 3.44 kB
- SHA256:
- cff449a1c22ef7077affcdea970700fee6a2fda4c91ef4e1f04442c58587f570
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.