Instructions to use ixim/Image21-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use ixim/Image21-MLX-8bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download ixim/Image21-MLX-8bit --local-dir Image21-MLX-8bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download scripts/login.py from ixim/Image21-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 898 Bytes
-
https://huggingface.co/ixim/Image21-MLX-8bit/resolve/main/scripts/login.py
- Command line
-
hf download hf://ixim/Image21-MLX-8bit/scripts/login.py
-
curl -L -o login.py https://huggingface.co/ixim/Image21-MLX-8bit/resolve/main/scripts/login.py
898 Bytes
| """Run interactively in your own terminal; never pass tokens on the command line.""" | |
| import argparse | |
| from getpass import getpass | |
| def main(): | |
| ap=argparse.ArgumentParser() | |
| ap.add_argument('platform',choices=('huggingface','modelscope')) | |
| args=ap.parse_args() | |
| if args.platform=='huggingface': | |
| from huggingface_hub import login,HfApi | |
| login(token=getpass('Hugging Face write token (hidden): '),add_to_git_credential=False) | |
| owner=HfApi().whoami()['name'] | |
| expected='ixim' | |
| else: | |
| from modelscope_hub import HubApi | |
| api=HubApi() | |
| user=api.login(getpass('ModelScope SDK write token (hidden): ')) | |
| owner=user.username | |
| expected='iximbox' | |
| if owner!=expected: raise ValueError(f'Expected {expected}; logged in as {owner}') | |
| print(f'Authenticated {owner}. No token has been printed.') | |
| if __name__=='__main__': main() | |