Feature Extraction
Transformers
Safetensors
English
arcee_kda
kda
kimi-delta-attention
linear-attention
distillation
research
custom_code
Instructions to use CollectionStudio/AFM-4.5B-Base-KDA-Only with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CollectionStudio/AFM-4.5B-Base-KDA-Only with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="CollectionStudio/AFM-4.5B-Base-KDA-Only", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CollectionStudio/AFM-4.5B-Base-KDA-Only", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from CollectionStudio/AFM-4.5B-Base-KDA-Only: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/CollectionStudio/AFM-4.5B-Base-KDA-Only/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://CollectionStudio/AFM-4.5B-Base-KDA-Only/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/CollectionStudio/AFM-4.5B-Base-KDA-Only/resolve/main/tokenizer_config.json
1.26 kB
| { | |
| "added_tokens_decoder": { | |
| "128000": { | |
| "content": "<|begin_of_text|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "128001": { | |
| "content": "<|end_of_text|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "128002": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "128003": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "128004": { | |
| "content": "<|finetune_right_pad_id|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|begin_of_text|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|im_end|>", | |
| "extra_special_tokens": {}, | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 65536, | |
| "pad_token": "<|end_of_text|>", | |
| "tokenizer_class": "PreTrainedTokenizerFast" | |
| } | |