Update README.md
Browse files
README.md
CHANGED
|
@@ -40,7 +40,17 @@ The fine-tuning process involved several key steps and configurations to optimiz
|
|
| 40 |
<summary>Click to copy Python code</summary>
|
| 41 |
|
| 42 |
##
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
```python
|
| 45 |
import torch
|
| 46 |
from transformers import AutoModelForCausalLM, BitsAndBytesConfig, AutoTokenizer
|
|
@@ -77,4 +87,3 @@ The fine-tuning process involved several key steps and configurations to optimiz
|
|
| 77 |
model.eval()
|
| 78 |
with torch.no_grad():
|
| 79 |
print(tokenizer.decode(model.generate(**model_input, max_new_tokens=100)[0], skip_special_tokens=True))
|
| 80 |
-
|
|
|
|
| 40 |
<summary>Click to copy Python code</summary>
|
| 41 |
|
| 42 |
##
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
### Context:
|
| 46 |
+
CREATE TABLE table_name_12 (class VARCHAR, frequency_mhz VARCHAR, city_of_license VARCHAR)
|
| 47 |
+
|
| 48 |
+
### Response:
|
| 49 |
+
|
| 50 |
+
### Explain:
|
| 51 |
+
<details>
|
| 52 |
+
<summary>Click to copy Python code</summary>
|
| 53 |
+
|
| 54 |
```python
|
| 55 |
import torch
|
| 56 |
from transformers import AutoModelForCausalLM, BitsAndBytesConfig, AutoTokenizer
|
|
|
|
| 87 |
model.eval()
|
| 88 |
with torch.no_grad():
|
| 89 |
print(tokenizer.decode(model.generate(**model_input, max_new_tokens=100)[0], skip_special_tokens=True))
|
|
|