Instructions to use NingLab/GeLLMO-P6-Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NingLab/GeLLMO-P6-Mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NingLab/GeLLMO-P6-Mistral")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NingLab/GeLLMO-P6-Mistral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NingLab/GeLLMO-P6-Mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NingLab/GeLLMO-P6-Mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NingLab/GeLLMO-P6-Mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NingLab/GeLLMO-P6-Mistral
- SGLang
How to use NingLab/GeLLMO-P6-Mistral 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 "NingLab/GeLLMO-P6-Mistral" \ --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": "NingLab/GeLLMO-P6-Mistral", "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 "NingLab/GeLLMO-P6-Mistral" \ --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": "NingLab/GeLLMO-P6-Mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NingLab/GeLLMO-P6-Mistral with Docker Model Runner:
docker model run hf.co/NingLab/GeLLMO-P6-Mistral
Commit History
-
Update README.md
Verified signaturea6437ea
-
Update README.md
Verified signatureef4ea6d
-
Upload config.json
Verified signaturefb6e56b -
Rename config.json to adapter_config.json
Verified signatured4a11e4
-
Update README.md
Verified signaturead5dfe3
-
Update README.md
Verified signaturea3ebc3a -
Delete adapter_config.json
Verified signaturef09a868 -
Upload config.json
Verified signature78c1ef2 -
Update README.md
Verified signature1f100a2
-
Update README.md
Verified signatureb23803c -
Upload 2 files
Verified signatureebace6c -
Update README.md
Verified signature7a6b814 -
initial commit
Verified signature4e43ef4