Instructions to use quiorte/codellama-java8m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use quiorte/codellama-java8m with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("codellama/CodeLlama-7b-hf") model = PeftModel.from_pretrained(base_model, "quiorte/codellama-java8m") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from quiorte/codellama-java8m: direct link, hf CLI and curl.
- Browser
- Download file 1.84 kB
-
https://huggingface.co/quiorte/codellama-java8m/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://quiorte/codellama-java8m/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/quiorte/codellama-java8m/resolve/main/tokenizer_config.json
1.84 kB
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32007": { | |
| "content": "▁<PRE>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32008": { | |
| "content": "▁<SUF>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32009": { | |
| "content": "▁<MID>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "32010": { | |
| "content": "▁<EOT>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "▁<PRE>", | |
| "▁<MID>", | |
| "▁<SUF>", | |
| "▁<EOT>" | |
| ], | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "</s>", | |
| "eot_token": "▁<EOT>", | |
| "fill_token": "<FILL_ME>", | |
| "legacy": null, | |
| "middle_token": "▁<MID>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "</s>", | |
| "prefix_token": "▁<PRE>", | |
| "sp_model_kwargs": {}, | |
| "suffix_token": "▁<SUF>", | |
| "tokenizer_class": "CodeLlamaTokenizer", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false | |
| } | |