Instructions to use 0xk1h0/codegen2.5-7b-py150k-r20-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use 0xk1h0/codegen2.5-7b-py150k-r20-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Salesforce/codegen25-7b-mono") model = PeftModel.from_pretrained(base_model, "0xk1h0/codegen2.5-7b-py150k-r20-LoRA") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from 0xk1h0/codegen2.5-7b-py150k-r20-LoRA: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/0xk1h0/codegen2.5-7b-py150k-r20-LoRA/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://0xk1h0/codegen2.5-7b-py150k-r20-LoRA/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/0xk1h0/codegen2.5-7b-py150k-r20-LoRA/resolve/main/tokenizer_config.json
506 Bytes
| { | |
| "add_eos_token": false, | |
| "add_special_tokens": true, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "Salesforce/codegen25-7b-mono--tokenization_codegen25.CodeGen25Tokenizer", | |
| null | |
| ] | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "model_max_length": 2048, | |
| "pad_token": null, | |
| "tokenizer_class": "CodeGen25Tokenizer" | |
| } | |