Instructions to use Raghul09/llama-code-gen-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Raghul09/llama-code-gen-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.2-3B") model = PeftModel.from_pretrained(base_model, "Raghul09/llama-code-gen-lora") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Raghul09/llama-code-gen-lora: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/Raghul09/llama-code-gen-lora/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Raghul09/llama-code-gen-lora/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Raghul09/llama-code-gen-lora/resolve/main/tokenizer_config.json
364 Bytes
| { | |
| "backend": "tokenizers", | |
| "bos_token": "<|begin_of_text|>", | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<|end_of_text|>", | |
| "is_local": false, | |
| "local_files_only": false, | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 131072, | |
| "pad_token": "<|end_of_text|>", | |
| "tokenizer_class": "TokenizersBackend" | |
| } | |