Instructions to use Daizee/Impish_Bloodmoon_12B-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Daizee/Impish_Bloodmoon_12B-mlx-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("Daizee/Impish_Bloodmoon_12B-mlx-4bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- MLX LM
How to use Daizee/Impish_Bloodmoon_12B-mlx-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Daizee/Impish_Bloodmoon_12B-mlx-4bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Daizee/Impish_Bloodmoon_12B-mlx-4bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Daizee/Impish_Bloodmoon_12B-mlx-4bit", "messages": [ {"role": "user", "content": "Hello"} ] }'
- Xet hash:
- 474f9c50c56bdc7f3b402ee09904e5a5c6a2b9b282d59ec06dae1837cd9fe50d
- Size of remote file:
- 17.1 MB
- SHA256:
- a2fa2956478eaa353c6c4b1f47fdd6868cce6075e52e169c35ae8bd28524e7a8
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.