Update README.md
Browse files
README.md
CHANGED
@@ -51,13 +51,15 @@ def generate_prompt(instruction, input=None):
|
|
51 |
### تعليمات:
|
52 |
{instruction}
|
53 |
|
54 |
-
|
|
|
|
|
55 |
generation_config = GenerationConfig(
|
56 |
temperature=0.2,
|
57 |
top_p=0.75,
|
58 |
num_beams=4,
|
59 |
)
|
60 |
-
# Evaluate the model
|
61 |
def evaluate(instruction, input=None):
|
62 |
prompt = generate_prompt(instruction, input)
|
63 |
inputs = tokenizer(prompt, return_tensors="pt")
|
|
|
51 |
### تعليمات:
|
52 |
{instruction}
|
53 |
|
54 |
+
### انتاج:"""
|
55 |
+
|
56 |
+
# Inputs to instantiate the model:
|
57 |
generation_config = GenerationConfig(
|
58 |
temperature=0.2,
|
59 |
top_p=0.75,
|
60 |
num_beams=4,
|
61 |
)
|
62 |
+
# Evaluate the model:
|
63 |
def evaluate(instruction, input=None):
|
64 |
prompt = generate_prompt(instruction, input)
|
65 |
inputs = tokenizer(prompt, return_tensors="pt")
|