Instructions to use labpt/ContRAG-GaMS3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use labpt/ContRAG-GaMS3 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("cjvt/GaMS3-12B-Instruct") model = PeftModel.from_pretrained(base_model, "labpt/ContRAG-GaMS3") - Transformers
How to use labpt/ContRAG-GaMS3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="labpt/ContRAG-GaMS3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("labpt/ContRAG-GaMS3", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use labpt/ContRAG-GaMS3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "labpt/ContRAG-GaMS3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "labpt/ContRAG-GaMS3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/labpt/ContRAG-GaMS3
- SGLang
How to use labpt/ContRAG-GaMS3 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 "labpt/ContRAG-GaMS3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "labpt/ContRAG-GaMS3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "labpt/ContRAG-GaMS3" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "labpt/ContRAG-GaMS3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use labpt/ContRAG-GaMS3 with Docker Model Runner:
docker model run hf.co/labpt/ContRAG-GaMS3
- Xet hash:
- 22173d1cd93a67d7dafc406d843554b7044d8d952902d1f4234edc94a7629cb2
- Size of remote file:
- 134 MB
- SHA256:
- 182e4c6501ede779c88278a0a8fa32abb276b383734fd2139978f7d2152a11b3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.