Instructions to use mlx-community/TinyMistral-248M-4bits with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/TinyMistral-248M-4bits 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("mlx-community/TinyMistral-248M-4bits") 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 mlx-community/TinyMistral-248M-4bits with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "mlx-community/TinyMistral-248M-4bits" --prompt "Once upon a time"
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: 753e7363a5d4b12e8bf2c49918608f4fa5d13f06e9a6eeddc0e440fc6c48b4fe
Scheduled commits:
- Upload 7 file(s) totalling 141.4M (a0841a2f082daaf44c629982dd9b4a521113c3c6315955e4a918f8d1520becd6)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Multi-commit is now completed! You can ping the repo owner to review the changes. This PR can now be commented or modified without risking to corrupt it.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.
create_pr=False has been passed so PR is automatically merged.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.