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