macadeliccc commited on
Commit
6e64a3e
·
verified ·
1 Parent(s): 3078996

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -4
README.md CHANGED
@@ -16,9 +16,7 @@ The process is outlined in this [notebook](https://github.com/cognitivecomputati
16
 
17
  #### Notes:
18
 
19
- This dolphin is not suited for code creation tasks, but performs very well on creation and math based tasks.
20
-
21
- DPO being used in only a portion of the merge seems to be causing issues with code creation.
22
 
23
  ## Code Example
24
 
@@ -47,7 +45,7 @@ def generate_response(prompt):
47
  return response
48
 
49
  # Load the model and tokenizer
50
- model_id = "macadeliccc/laser-dolphin-mixtral-2x7b-dpo"
51
  tokenizer = AutoTokenizer.from_pretrained(model_id)
52
  model = AutoModelForCausalLM.from_pretrained(model_id, load_in_4bit=True)
53
 
@@ -58,6 +56,29 @@ print("Response:")
58
  print(generate_response(prompt), "\n")
59
  ```
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  ## GGUF
62
 
63
  Q4_K_M and Q5_K_M quants are available [here](https://huggingface.co/macadeliccc/laser-dolphin-mixtral-4x7b-dpo-GGUF)
 
16
 
17
  #### Notes:
18
 
19
+ DPO being used in only a portion of the merge seems to be causing issues with code creation.
 
 
20
 
21
  ## Code Example
22
 
 
45
  return response
46
 
47
  # Load the model and tokenizer
48
+ model_id = "macadeliccc/laser-dolphin-mixtral-4x7b-dpo"
49
  tokenizer = AutoTokenizer.from_pretrained(model_id)
50
  model = AutoModelForCausalLM.from_pretrained(model_id, load_in_4bit=True)
51
 
 
56
  print(generate_response(prompt), "\n")
57
  ```
58
 
59
+ ## Example output
60
+
61
+ can you write me a quicksort algorithm in python?
62
+
63
+ Sure, here's a quicksort algorithm implemented in Python:
64
+
65
+ ```python
66
+ def quicksort(arr):
67
+ if len(arr) <= 1:
68
+ return arr
69
+ pivot = arr[len(arr) // 2]
70
+ left = [x for x in arr if x < pivot]
71
+ middle = [x for x in arr if x == pivot]
72
+ right = [x for x in arr if x > pivot]
73
+ return quicksort(left) + middle + quicksort(right)
74
+ ```
75
+
76
+ This implementation uses the median of the array as the pivot.
77
+ It first checks if the array has one or fewer elements, in which case it is already sorted and can be returned as is.
78
+ Otherwise, it selects the pivot as the middle element of the array. Then, it partitions the array into three sub-arrays: elements less than the pivot, elements equal to the pivot, and elements greater than the pivot.
79
+ It recursively sorts the left and right sub-arrays and concatenates the results with the middle sub-array to obtain the final sorted array.
80
+
81
+
82
  ## GGUF
83
 
84
  Q4_K_M and Q5_K_M quants are available [here](https://huggingface.co/macadeliccc/laser-dolphin-mixtral-4x7b-dpo-GGUF)