Instructions to use vikhyatk/moondream-next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vikhyatk/moondream-next with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vikhyatk/moondream-next", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("vikhyatk/moondream-next", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vikhyatk/moondream-next with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vikhyatk/moondream-next" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vikhyatk/moondream-next", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vikhyatk/moondream-next
- SGLang
How to use vikhyatk/moondream-next 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 "vikhyatk/moondream-next" \ --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": "vikhyatk/moondream-next", "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 "vikhyatk/moondream-next" \ --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": "vikhyatk/moondream-next", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vikhyatk/moondream-next with Docker Model Runner:
docker model run hf.co/vikhyatk/moondream-next
Gated model You can list files but not access them
Preview of files found in this repository
- 1.52 kB
- 325 Bytes
- 277 Bytes
- 2.83 kB
- 3.34 kB
- 559 Bytes
- 69 Bytes
- 5.53 kB
- 8.15 kB
- 6.99 kB
- 2.3 kB
- 4.91 GB xet
- 4.74 GB xet
- 4.5 GB xet
- 4.39 GB xet
- 18.5 GB xet
- 51.5 kB
- 10.5 GB xet
- 63.5 kB
- 38.2 kB
- 4.51 kB
- 2.1 kB
- 35 Bytes
- 1.55 kB
- 18.5 GB xet
- 99 Bytes
- 8.25 kB
- 2.11 MB
- 1.54 kB
- 1.42 kB
- 5.09 kB
- 10.2 kB
- 798 kB
- 9.71 kB