Instructions to use cjvt/OPT_GaMS-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cjvt/OPT_GaMS-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cjvt/OPT_GaMS-1B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cjvt/OPT_GaMS-1B") model = AutoModelForCausalLM.from_pretrained("cjvt/OPT_GaMS-1B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cjvt/OPT_GaMS-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cjvt/OPT_GaMS-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cjvt/OPT_GaMS-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/cjvt/OPT_GaMS-1B
- SGLang
How to use cjvt/OPT_GaMS-1B 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 "cjvt/OPT_GaMS-1B" \ --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": "cjvt/OPT_GaMS-1B", "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 "cjvt/OPT_GaMS-1B" \ --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": "cjvt/OPT_GaMS-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use cjvt/OPT_GaMS-1B with Docker Model Runner:
docker model run hf.co/cjvt/OPT_GaMS-1B
Commit History
-
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (142bdd3835ec2cec6d9b2d706a5ba8855a2b1252) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>6351deb
-
Update README.md
Verified signature436c233 -
Update README.md
Verified signature652a798 -
Update README.md
Verified signature3df7805
-
Update README.md
Verified signature842ae42 -
Update README.md
Verified signaturec7504a8 -
Update README.md
Verified signatureeeaa163 -
Update README.md
Verified signatureff36489 -
Update README.md
Verified signaturebceb26f -
Update README.md
Verified signatureab6dde5 -
Update README.md
Verified signature14024ba
-
Update config.json
Verified signature1a3e428
-
Update README.md
Verified signature0645d4c
-
Update README.md
Verified signaturee90ddb4 -
Update README.md
Verified signaturefa2aa6e -
Create README.md
Verified signature05b7b98 -
Upload tokenizer
Verified signature68af8e8 -
Upload OPTForCausalLM
Verified signature1362cbb -
Upload OPTForCausalLM
Verified signaturebcf8b2f -
initial commit
Verified signature24888a0