Instructions to use QuanxinLi/TinyGuard-Command with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use QuanxinLi/TinyGuard-Command with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download QuanxinLi/TinyGuard-Command --local-dir TinyGuard-Command
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download config.json from QuanxinLi/TinyGuard-Command: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/QuanxinLi/TinyGuard-Command/resolve/main/config.json
- Command line
-
hf download hf://QuanxinLi/TinyGuard-Command/config.json
-
curl -L -o config.json https://huggingface.co/QuanxinLi/TinyGuard-Command/resolve/main/config.json
446 Bytes
| { | |
| "architectures": [ | |
| "TinyGuardClassifier" | |
| ], | |
| "model_type": "tinyguard", | |
| "hidden_size": 256, | |
| "num_hidden_layers": 6, | |
| "num_attention_heads": 4, | |
| "intermediate_size": 1024, | |
| "vocab_size": 16384, | |
| "max_position_embeddings": 512, | |
| "num_classes": 3, | |
| "pad_token_id": 0, | |
| "framework": "mlx", | |
| "license": "apache-2.0", | |
| "id2label": { | |
| "0": "safe", | |
| "1": "confirm", | |
| "2": "deny" | |
| }, | |
| "label2id": { | |
| "safe": 0, | |
| "confirm": 1, | |
| "deny": 2 | |
| } | |
| } |