Instructions to use szalontaib/MegaBugInject with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use szalontaib/MegaBugInject with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("/home/bszalontai/balazs_munka/codellama/models_hf/wizard-coder-13b-python") model = PeftModel.from_pretrained(base_model, "szalontaib/MegaBugInject") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
|
| 27 |
from peft import PeftModel
|
| 28 |
|
| 29 |
model_id_pretrained = 'WizardLMTeam/WizardCoder-Python-13B-V1.0'
|
| 30 |
-
model_id_finetuned = 'szalontaib/
|
| 31 |
|
| 32 |
tokenizer = AutoTokenizer.from_pretrained(model_id_pretrained, add_eos_token=False)
|
| 33 |
model = AutoModelForCausalLM.from_pretrained(model_id_pretrained, device_map='auto', dtype=torch.float16, trust_remote_code=True)
|
|
|
|
| 27 |
from peft import PeftModel
|
| 28 |
|
| 29 |
model_id_pretrained = 'WizardLMTeam/WizardCoder-Python-13B-V1.0'
|
| 30 |
+
model_id_finetuned = 'szalontaib/MegaBugInject'
|
| 31 |
|
| 32 |
tokenizer = AutoTokenizer.from_pretrained(model_id_pretrained, add_eos_token=False)
|
| 33 |
model = AutoModelForCausalLM.from_pretrained(model_id_pretrained, device_map='auto', dtype=torch.float16, trust_remote_code=True)
|