Instructions to use lil-lab/CoLMLM-Question-Generator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use lil-lab/CoLMLM-Question-Generator with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "lil-lab/CoLMLM-Question-Generator") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from lil-lab/CoLMLM-Question-Generator: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/lil-lab/CoLMLM-Question-Generator/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://lil-lab/CoLMLM-Question-Generator/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/lil-lab/CoLMLM-Question-Generator/resolve/main/special_tokens_map.json
1.47 kB
| { | |
| "additional_special_tokens": [ | |
| { | |
| "content": "<FACT>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "</FACT>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<FACT_ID>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<DOC_SEP>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<QUESTION>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "</QUESTION>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<ANSWER>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "</ANSWER>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| ], | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |