Instructions to use VERSIL91/test-repo-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use VERSIL91/test-repo-2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/mistral-7b-instruct-v0.2") model = PeftModel.from_pretrained(base_model, "VERSIL91/test-repo-2") - Notebooks
- Google Colab
- Kaggle
Download test.py from VERSIL91/test-repo-2: direct link, hf CLI and curl.
- Browser
- Download file 284 Bytes
-
https://huggingface.co/VERSIL91/test-repo-2/resolve/main/test.py
- Command line
-
hf download hf://VERSIL91/test-repo-2/test.py
-
curl -L -o test.py https://huggingface.co/VERSIL91/test-repo-2/resolve/main/test.py
284 Bytes
| with open("README.md", "r") as file: | |
| lines = file.readlines() | |
| new_lines = [] | |
| for line in lines: | |
| if "hub_model_id: " in line: | |
| new_lines.append(f"hub_model_id: null\n") | |
| else: new_lines.append(line) | |
| with open("README.md", "w") as file: | |
| file.writelines(new_lines) |