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