Run this model with HF Jobs
Run CofeAI/FLM-2-52B-Instruct-2407 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/CofeAI/FLM-2-52B-Instruct-2407. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CofeAI/FLM-2-52B-Instruct-2407 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use CofeAI/FLM-2-52B-Instruct-2407 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CofeAI/FLM-2-52B-Instruct-2407 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="CofeAI/FLM-2-52B-Instruct-2407", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CofeAI/FLM-2-52B-Instruct-2407", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from CofeAI/FLM-2-52B-Instruct-2407: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/CofeAI/FLM-2-52B-Instruct-2407/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://CofeAI/FLM-2-52B-Instruct-2407/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/CofeAI/FLM-2-52B-Instruct-2407/resolve/main/tokenizer_config.json
1.41 kB
| { | |
| "add_bos_token": false, | |
| "add_eos_token": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_flm.FLMTokenizer", | |
| null | |
| ] | |
| }, | |
| "bos_token": "<s>", | |
| "chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ '<_user>' + message['content'].strip() + '<_bot>' }}{% elif message['role'] == 'system' %}{{ '' }}{% elif message['role'] == 'assistant' %}{{ message['content'] }}{% endif %}{% endfor %}", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "model_max_length": 8192, | |
| "pad_token": "<pad>", | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "FLMTokenizer", | |
| "unk_token": "<unk>", | |
| "use_fast": false | |
| } | |