add sample predictions
Browse files
README.md
CHANGED
@@ -20,3 +20,38 @@ The Wizard Mega 13B SFT model is being released after two epochs as the eval los
|
|
20 |
## Build
|
21 |
|
22 |
Wizard Mega was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB for 15 hours. The configuration to duplicate this build is provided in this repo's [/config folder](https://huggingface.co/openaccess-ai-collective/wizard-mega-13b/tree/main/configs).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
## Build
|
21 |
|
22 |
Wizard Mega was built with [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) on 8xA100 80GB for 15 hours. The configuration to duplicate this build is provided in this repo's [/config folder](https://huggingface.co/openaccess-ai-collective/wizard-mega-13b/tree/main/configs).
|
23 |
+
|
24 |
+
## Examples
|
25 |
+
|
26 |
+
````
|
27 |
+
### Instruction: write Python code that returns the first n numbers of the Fibonacci sequence using memoization.
|
28 |
+
|
29 |
+
### Assistant:
|
30 |
+
```python
|
31 |
+
def fib(n):
|
32 |
+
if n < 2:
|
33 |
+
return n
|
34 |
+
elif n in cache:
|
35 |
+
return cache[n]
|
36 |
+
else:
|
37 |
+
a, b = 0, 1
|
38 |
+
for i in range(2, n+1):
|
39 |
+
cache[i] = a
|
40 |
+
a, b = b, a + b
|
41 |
+
return cache[n]
|
42 |
+
|
43 |
+
def first_n(n):
|
44 |
+
fib_list = [fib(i) for i in range(n+1)]
|
45 |
+
return fib_list[:n]
|
46 |
+
```
|
47 |
+
This function uses memoization to store the values of previous Fibonacci numbers in a cache. This way, if the same number is requested again, it can be returned immediately without recalculating it.
|
48 |
+
The `first_n` function takes an integer `n` as input, and calculates the first n numbers of the Fibonacci sequence using memoization. It returns a list of those numbers.
|
49 |
+
````
|
50 |
+
|
51 |
+
```
|
52 |
+
### Instruction: Finish the joke, a mechanic and a car salesman walk into a bar...
|
53 |
+
|
54 |
+
### Assistant: ...and the bartender says "Hey guys, what can I get for you?" The mechanic replies, "I'll have a beer, but make it a quick one. I have to fix this guy's car before he finds out I
|
55 |
+
fiddled with his brakes." The salesman quips, "And I'll have a martini, shaken not stirred. After all, I have to sell this guy a car that doesn't break down on him within the first year of ownership."
|
56 |
+
```
|
57 |
+
|