winddude commited on
Commit
f5cce07
1 Parent(s): acd2f6c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +124 -0
README.md CHANGED
@@ -1,3 +1,127 @@
1
  ---
2
  license: gpl-3.0
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: gpl-3.0
3
+ datasets:
4
+ - victor123/evol_instruct_70k
5
+ language:
6
+ - en
7
  ---
8
+
9
+ # wizardLM-LlaMA-LoRA-13B
10
+
11
+ A LoRA trained on the WizardLM dataset, with a LlaMA 13B as the basemodel.
12
+
13
+ Done as a bit of an expirment to learn more about training, and some of the huggingface modules.
14
+
15
+ ## Training Details
16
+
17
+ - Trained on 5x3090 24gb.
18
+ - Used DDP and torchrun for distributed paralization
19
+ - Trained with https://github.com/tloen/alpaca-lora.
20
+ - since the victor123/evol_instruct_70k dataset only contains instruction and output, comment out the line data_point["input"], around line 151 in alpaca-lora\finetune.py
21
+
22
+ ```
23
+ Training Alpaca-LoRA model with params:
24
+ base_model: /home/llmadmin/models/my_llama_hf/llama_hf_13B
25
+ data_path: victor123/evol_instruct_70k
26
+ output_dir: /home/llmadmin/models/loras-trained/wizardLM-llama-lora-13b
27
+ batch_size: 128
28
+ micro_batch_size: 4
29
+ num_epochs: 3
30
+ learning_rate: 0.0003
31
+ cutoff_len: 512
32
+ val_set_size: 2000
33
+ lora_r: 8
34
+ lora_alpha: 16
35
+ lora_dropout: 0.05
36
+ lora_target_modules: ['q_proj', 'v_proj']
37
+ train_on_inputs: True
38
+ add_eos_token: False
39
+ group_by_length: False
40
+ wandb_project:
41
+ wandb_run_name:
42
+ wandb_watch:
43
+ wandb_log_model:
44
+ resume_from_checkpoint: False
45
+ prompt template: alpaca_short
46
+ ```
47
+
48
+ ```
49
+ {'train_runtime': 29137.919, 'train_samples_per_second': 7.001, 'train_steps_per_second': 0.058, 'train_loss': 0.7214384505830187, 'epoch': 3.0}
50
+ ```
51
+
52
+ ## Prompt Samples
53
+
54
+ Empiracally it looks decent at long form content.
55
+
56
+ ```
57
+ ### Instruction:
58
+ Write a poem about the transformers Python library.
59
+
60
+ ### Response:
61
+ Transformers, oh how you've changed my life!
62
+ You make coding so much easier and more efficient with your code.
63
+ Your ability to handle complex data is truly remarkable,
64
+ And I can't imagine writing code without you now.
65
+
66
+ Transforms, you are like magic wands,
67
+ Making tasks that seemed impossible before, possible again.
68
+ With just one line of code, you can do it all,
69
+ From preprocessing text to cleaning up messy data.
70
+
71
+ Transformers, you are like superheroes in disguise,
72
+ Saving us from frustration and despair when we need to parse some files.
73
+ You help us understand what our data means,
74
+ By converting it into formats that we can easily read.
75
+
76
+ Transformers, you are like magicians at work,
77
+ Performing tricks that seem too good to be true.
78
+ You take raw data and turn it into something useful,
79
+ Hel....
80
+ ```
81
+ - decent, max new tokens cut it short
82
+
83
+ ```
84
+ ### Instruction:
85
+ Tell me about llamas and alpacas
86
+ ### Response:
87
+ Llamas and Alpacas are both members of the Camelid family, which includes camels. They have similar physical characteristics such as a humped back, long necks, and large eyes. However, there are some differences between them.
88
+ - Llamas are larger in size than alpacas with an average height of around 5 feet tall while alpaca's average at 3 to 4 feet tall.
89
+ - The wool of llama is coarser and thicker compared to that of alpaca. This makes it more suitable for outdoor use like blankets or rugs. On the other hand, alpaca wool is softer and finer making it ideal for clothing materials.
90
+ - Both animals are herbivores but llamas can survive on a wider range of vegetation including grasses, shrubs, and even cacti. Alpacas prefer eating...
91
+ ```
92
+ - decent, max new tokens cut it short
93
+
94
+ ```
95
+ ### Instruction:
96
+ List all Canadian provinces and territories in alphabetical order.
97
+ ### Response:
98
+ Alberta, British Columbia, Manitoba, New Brunswick, Northwest Territories, Nova Scotia, Nunavut, Ontario, Prince Edward Island, Quebec, Saskatchewan, Yukon.
99
+ Note that the spelling of "Northwest" is correct as it refers to a specific region within Canada's borders. The other spellings are also accurate for their respective regions or provinces/territories.
100
+
101
+ ### Response:
102
+ ```
103
+ - it seems to want to generate longer texts, not stopping when done, hense the `### RESPONSE`. My thoughts are either concatination and truncation of prompts in training. Possibly special tokens. Or using other tokens to signify instruct/response.
104
+
105
+ ```
106
+ ### Instruction:
107
+ What made NHL super star Maurice "Rocket" Richard such an amazing player?
108
+ ### Response:
109
+ Maurice "The Rocket" Richard was a Canadian ice hockey player who played for the Montreal Canadiens from 1942 to 1960. He is considered one of the greatest players in NHL history and was known for his speed, strength, and scoring ability. Some of his notable achievements include winning eight Stanley Cups with the Canadians, being named MVP three times, and setting numerous records including most goals scored in a season (50) and career goals (544). His nickname "the rocket" came from his explosive skating style that allowed him to quickly accelerate past defenders. Overall, he was a dominant force on the ice and helped revolutionize the game of hockey during his era.
110
+
111
+ ### Response:
112
+ ```
113
+
114
+ ```
115
+ ### Instruction:
116
+ Write a python function to sort an array of strings in reverse alphabetical order.
117
+ ### Response:
118
+ Here's the Python code for sorting an array of strings in reverse alphabetical order using the built-in sorted() method:
119
+ ```python
120
+ def reverse_sort(arr):
121
+ arr = list(sorted(arr, key=lambda x: -x)) # Sorting in reverse order
122
+ return arr
123
+ ```
124
+ This function takes an input array as argument and returns it sorted in reverse alphabetical order. The `key` parameter is used to specify how elements should be compared when sorting them. In this case, we use `-x`, which reverses the string before comparing it with other elements. This ensures that the smallest element comes first in the output array. Finally, the returned value is converted back into a list using the `list()` constructor.
125
+ ```
126
+ - this is shit. I don't recommend using this for code.
127
+