Update README.md
Browse files
README.md
CHANGED
@@ -46,12 +46,15 @@ Under the hoos, the model will see a prompt that's formatted like so:
|
|
46 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>{prompt}<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
|
47 |
```
|
48 |
|
|
|
|
|
49 |
## Use case and examples
|
50 |
|
51 |
Command-R is tuned for a broad range of uses such as reasoning, summarizing, general knowledge, and coding.
|
52 |
|
53 |
### Reasoning:
|
54 |
|
|
|
55 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>
|
56 |
Statements:
|
57 |
|
@@ -75,51 +78,54 @@ II. No mathematician is irrational: This conclusion is a direct inference from t
|
|
75 |
III. Some scientists are irrational: This conclusion does not necessarily follow from the given statements. While it's true that not all scientists may be logical thinkers (as indicated in the second conclusion), it doesn't imply that they are irrational. The statement about scientists being irrational cannot be definitively concluded from the given information, so this conclusion is not correct.
|
76 |
|
77 |
In summary, only I and II are correct conclusions based on the logical relationships within the statements provided.<|END_OF_TURN_TOKEN|>
|
|
|
78 |
|
79 |
### Coding:
|
80 |
|
|
|
81 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>
|
82 |
Can you provide a merge sort implementation in python?<|END_OF_TURN_TOKEN|>
|
83 |
<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
|
84 |
Here's a merge sort implementation in Python:
|
85 |
-
```python
|
86 |
-
def merge_sort(arr):
|
87 |
-
if len(arr) > 1:
|
88 |
-
mid = len(arr) // 2
|
89 |
-
left = arr[:mid]
|
90 |
-
right = arr[mid:]
|
91 |
-
|
92 |
-
merge_sort(left)
|
93 |
-
merge_sort(right)
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
arr[k] = left[i]
|
100 |
i += 1
|
101 |
-
|
|
|
|
|
102 |
arr[k] = right[j]
|
103 |
j += 1
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
while j < len(right):
|
112 |
-
arr[k] = right[j]
|
113 |
-
j += 1
|
114 |
-
k += 1
|
115 |
-
|
116 |
-
# Example usage
|
117 |
-
my_list = [12, 11, 13, 5, 6, 7]
|
118 |
-
merge_sort(my_list)
|
119 |
-
print(my_list)
|
120 |
-
```
|
121 |
|
122 |
The `merge_sort` function takes a list `arr` as input and recursively divides it into two halves until each half contains a single element or is empty. It then merges the two sorted halves in a sorted manner. The example usage demonstrates how to use the function to sort a list.<|END_OF_TURN_TOKEN|>
|
|
|
123 |
|
124 |
## Technical Details
|
125 |
|
|
|
46 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>{prompt}<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
|
47 |
```
|
48 |
|
49 |
+
Note that this model does not support a System prompt.
|
50 |
+
|
51 |
## Use case and examples
|
52 |
|
53 |
Command-R is tuned for a broad range of uses such as reasoning, summarizing, general knowledge, and coding.
|
54 |
|
55 |
### Reasoning:
|
56 |
|
57 |
+
```
|
58 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>
|
59 |
Statements:
|
60 |
|
|
|
78 |
III. Some scientists are irrational: This conclusion does not necessarily follow from the given statements. While it's true that not all scientists may be logical thinkers (as indicated in the second conclusion), it doesn't imply that they are irrational. The statement about scientists being irrational cannot be definitively concluded from the given information, so this conclusion is not correct.
|
79 |
|
80 |
In summary, only I and II are correct conclusions based on the logical relationships within the statements provided.<|END_OF_TURN_TOKEN|>
|
81 |
+
```
|
82 |
|
83 |
### Coding:
|
84 |
|
85 |
+
```
|
86 |
<BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>
|
87 |
Can you provide a merge sort implementation in python?<|END_OF_TURN_TOKEN|>
|
88 |
<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
|
89 |
Here's a merge sort implementation in Python:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
def merge_sort(arr):
|
92 |
+
if len(arr) > 1:
|
93 |
+
mid = len(arr) // 2
|
94 |
+
left = arr[:mid]
|
95 |
+
right = arr[mid:]
|
96 |
+
|
97 |
+
merge_sort(left)
|
98 |
+
merge_sort(right)
|
99 |
+
|
100 |
+
i = j = k = 0
|
101 |
+
|
102 |
+
while i < len(left) and j < len(right):
|
103 |
+
if left[i] < right[j]:
|
104 |
+
arr[k] = left[i]
|
105 |
+
i += 1
|
106 |
+
else:
|
107 |
+
arr[k] = right[j]
|
108 |
+
j += 1
|
109 |
+
k += 1
|
110 |
+
|
111 |
+
while i < len(left):
|
112 |
arr[k] = left[i]
|
113 |
i += 1
|
114 |
+
k += 1
|
115 |
+
|
116 |
+
while j < len(right):
|
117 |
arr[k] = right[j]
|
118 |
j += 1
|
119 |
+
k += 1
|
120 |
+
|
121 |
+
# Example usage
|
122 |
+
my_list = [12, 11, 13, 5, 6, 7]
|
123 |
+
merge_sort(my_list)
|
124 |
+
print(my_list)
|
125 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
The `merge_sort` function takes a list `arr` as input and recursively divides it into two halves until each half contains a single element or is empty. It then merges the two sorted halves in a sorted manner. The example usage demonstrates how to use the function to sort a list.<|END_OF_TURN_TOKEN|>
|
128 |
+
```
|
129 |
|
130 |
## Technical Details
|
131 |
|