Instructions to use DLCS/contract-clause-phi3-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DLCS/contract-clause-phi3-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "DLCS/contract-clause-phi3-lora") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from DLCS/contract-clause-phi3-lora: direct link, hf CLI and curl.
- Browser
- Download file 409 Bytes
-
https://huggingface.co/DLCS/contract-clause-phi3-lora/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://DLCS/contract-clause-phi3-lora/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/DLCS/contract-clause-phi3-lora/resolve/main/tokenizer_config.json
409 Bytes
| { | |
| "backend": "tokenizers", | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "is_local": false, | |
| "legacy": false, | |
| "local_files_only": false, | |
| "model_max_length": 4096, | |
| "pad_token": "<|endoftext|>", | |
| "padding_side": "left", | |
| "sp_model_kwargs": {}, | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false | |
| } | |