Instructions to use Chiaki111/phi4-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Chiaki111/phi4-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/Phi-4-mini-instruct") model = PeftModel.from_pretrained(base_model, "Chiaki111/phi4-lora") - Transformers
How to use Chiaki111/phi4-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Chiaki111/phi4-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from Chiaki111/phi4-lora: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/Chiaki111/phi4-lora/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Chiaki111/phi4-lora/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Chiaki111/phi4-lora/resolve/main/tokenizer_config.json
321 Bytes
| { | |
| "add_prefix_space": false, | |
| "backend": "tokenizers", | |
| "bos_token": "<|endoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<|endoftext|>", | |
| "is_local": false, | |
| "model_max_length": 131072, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": "<|endoftext|>" | |
| } | |