Instructions to use vikhyatk/moondream1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vikhyatk/moondream1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="vikhyatk/moondream1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("vikhyatk/moondream1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use vikhyatk/moondream1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "vikhyatk/moondream1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "vikhyatk/moondream1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/vikhyatk/moondream1
- SGLang
How to use vikhyatk/moondream1 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/moondream1" \ --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/moondream1", "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/moondream1" \ --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/moondream1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use vikhyatk/moondream1 with Docker Model Runner:
docker model run hf.co/vikhyatk/moondream1
Commit History
-
Update README.md
Verified signaturef6e9da6 -
Upload Moondream
Verified signature5b39a3f -
Upload Moondream
Verified signature5139ce9 -
Upload Moondream
Verified signaturef10c8a2
-
Update README.md
Verified signature1e62d51 -
Upload Moondream
Verified signature1a73d87 -
Upload Moondream
Verified signature90f21ed -
Upload Moondream
Verified signature6eb5bbc -
Upload tokenizer
Verified signaturea4becc9
-
Upload Moondream
Verified signature2e5a574 -
Push model using huggingface_hub.
Verified signature697ea67
-
Update README.md
Verified signature3b9dfe7 -
Upload 5 files
Verified signature3188fe2 -
Upload vision.pt with huggingface_hub
Verified signature5cd8d1e
-
Upload vision.pt with huggingface_hub
Verified signature2a6f8d0 -
Upload vision.pt
Verified signaturedd5400e -
Upload text_model.pt
Verified signature85b9f7d -
Create README.md
Verified signature8422d94 -
Upload 6 files
Verified signaturec881bf0 -
Create text_model_cfg.json
Verified signatureca27ecc -
initial commit
Verified signature467bbf5