Update README.md
Browse files
README.md
CHANGED
@@ -64,7 +64,19 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
64 |
)
|
65 |
tokenizer = AutoTokenizer.from_pretrained("NTQAI/Nxcode-CQ-7B-orpo")
|
66 |
|
67 |
-
prompt = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
messages = [
|
69 |
{"role": "user", "content": prompt}
|
70 |
]
|
|
|
64 |
)
|
65 |
tokenizer = AutoTokenizer.from_pretrained("NTQAI/Nxcode-CQ-7B-orpo")
|
66 |
|
67 |
+
prompt = """Complete the following Python function:
|
68 |
+
from typing import List
|
69 |
+
|
70 |
+
|
71 |
+
def has_close_elements(numbers: List[float], threshold: float) -> bool:
|
72 |
+
""" Check if in given list of numbers, are any two numbers closer to each other than
|
73 |
+
given threshold.
|
74 |
+
>>> has_close_elements([1.0, 2.0, 3.0], 0.5)
|
75 |
+
False
|
76 |
+
>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)
|
77 |
+
True
|
78 |
+
"""
|
79 |
+
"""
|
80 |
messages = [
|
81 |
{"role": "user", "content": prompt}
|
82 |
]
|