Instructions to use moonbox-dev/Muse-Glimmer-30B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use moonbox-dev/Muse-Glimmer-30B-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("moonbox-dev/Muse-Glimmer-30B-MLX") config = load_config("moonbox-dev/Muse-Glimmer-30B-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
8bit: generation_config.json
Browse files- 8bit/generation_config.json +13 -0
8bit/generation_config.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 200000,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
200001,
|
| 5 |
+
200008
|
| 6 |
+
],
|
| 7 |
+
"pad_token_id": 200018,
|
| 8 |
+
"max_length": 131072,
|
| 9 |
+
"do_sample": true,
|
| 10 |
+
"temperature": 1.0,
|
| 11 |
+
"top_p": 0.95,
|
| 12 |
+
"top_k": 64
|
| 13 |
+
}
|