Instructions to use liangc40/student-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use liangc40/student-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("liangc40/distilled-student") model = PeftModel.from_pretrained(base_model, "liangc40/student-lora") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from liangc40/student-lora: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/liangc40/student-lora/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://liangc40/student-lora/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/liangc40/student-lora/resolve/main/tokenizer_config.json
698 Bytes
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "50256": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "extra_special_tokens": {}, | |
| "max_length": 128, | |
| "model_max_length": 1024, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<|endoftext|>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "stride": 0, | |
| "tokenizer_class": "GPT2Tokenizer", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first", | |
| "unk_token": "<|endoftext|>" | |
| } | |