Instructions to use khushimalik53/codex-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use khushimalik53/codex-finetune with PEFT:
Base model is not found.
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -113,8 +113,8 @@ Step Training Loss
|
|
| 113 |
|
| 114 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 115 |
|
| 116 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 117 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 118 |
|
| 119 |
prompt = "### Instruction:\nExplain what this function does:\ndef reverse_string(s): return s[::-1]\n\n### Response:\n"
|
| 120 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
|
|
|
| 113 |
|
| 114 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 115 |
|
| 116 |
+
tokenizer = AutoTokenizer.from_pretrained("khushimalik53/codex-finetune")
|
| 117 |
+
model = AutoModelForCausalLM.from_pretrained("khushimalik53/codex-finetune")
|
| 118 |
|
| 119 |
prompt = "### Instruction:\nExplain what this function does:\ndef reverse_string(s): return s[::-1]\n\n### Response:\n"
|
| 120 |
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|