Update README.md
Browse files
README.md
CHANGED
|
@@ -94,4 +94,16 @@ The data was preprocessed to standardize the format of code snippets and ensure
|
|
| 94 |
- Learning rate: 2e-4
|
| 95 |
- Optimizer: AdamW
|
| 96 |
- Max_steps: 300
|
| 97 |
-
- Max_seq_length: 512
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
- Learning rate: 2e-4
|
| 95 |
- Optimizer: AdamW
|
| 96 |
- Max_steps: 300
|
| 97 |
+
- Max_seq_length: 512
|
| 98 |
+
## Test the Model
|
| 99 |
+
### Python Coding Questions
|
| 100 |
+
User input:
|
| 101 |
+
"How do I write a function in Python?"
|
| 102 |
+
Model output
|
| 103 |
+
```
|
| 104 |
+
In Python, a function is defined using the `def` keyword followed by the function name, parentheses, and a colon. Inside the function, you can write code that gets executed when the function is called. Here's a simple example:
|
| 105 |
+
def greet(name):
|
| 106 |
+
return f"Hello, {name}!"
|
| 107 |
+
# Example usage:
|
| 108 |
+
print(greet("Alice")) # Output: Hello, Alice!
|
| 109 |
+
```
|