Instructions to use hkust-aaron/EdgeRock-4B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use hkust-aaron/EdgeRock-4B-MLX-8bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("hkust-aaron/EdgeRock-4B-MLX-8bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- MLX LM
How to use hkust-aaron/EdgeRock-4B-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "hkust-aaron/EdgeRock-4B-MLX-8bit" --prompt "Once upon a time"
- Atomic Chat
Download tokenizer.json from hkust-aaron/EdgeRock-4B-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 20 MB
-
https://huggingface.co/hkust-aaron/EdgeRock-4B-MLX-8bit/resolve/main/tokenizer.json
- Command line
-
hf download hf://hkust-aaron/EdgeRock-4B-MLX-8bit/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/hkust-aaron/EdgeRock-4B-MLX-8bit/resolve/main/tokenizer.json
20 MB
- Xet hash:
- 777bcaa63794fa47b8f53680be9d6d176f1fcbd7ba03cdc6c3bae2b3d76b323f
- Size of remote file:
- 20 MB
- SHA256:
- 06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.