louisbrulenaudet commited on
Commit
fd4aa10
·
verified ·
1 Parent(s): 5708ee7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -3
README.md CHANGED
@@ -5,18 +5,37 @@ tags:
5
  - lazymergekit
6
  - mlabonne/OmniBeagle-7B
7
  - WizardLM/WizardMath-7B-V1.1
 
8
  base_model:
9
  - mlabonne/OmniBeagle-7B
10
  - WizardLM/WizardMath-7B-V1.1
 
 
 
 
11
  ---
12
 
13
- # Pearl-7B-slerp
 
 
14
 
15
  Pearl-7B-slerp is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
16
  * [mlabonne/OmniBeagle-7B](https://huggingface.co/mlabonne/OmniBeagle-7B)
17
  * [WizardLM/WizardMath-7B-V1.1](https://huggingface.co/WizardLM/WizardMath-7B-V1.1)
18
 
19
- ## 🧩 Configuration
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  ```yaml
22
  slices:
@@ -37,7 +56,7 @@ parameters:
37
  dtype: bfloat16
38
  ```
39
 
40
- ## 💻 Usage
41
 
42
  ```python
43
  !pip install -qU transformers accelerate
 
5
  - lazymergekit
6
  - mlabonne/OmniBeagle-7B
7
  - WizardLM/WizardMath-7B-V1.1
8
+ - Math
9
  base_model:
10
  - mlabonne/OmniBeagle-7B
11
  - WizardLM/WizardMath-7B-V1.1
12
+ license: apache-2.0
13
+ language:
14
+ - en
15
+ library_name: transformers
16
  ---
17
 
18
+ ![Pearl illustration](https://imgur.com/0xFTuAX)
19
+
20
+ # Pearl-7B-slerp, an xtraordinary model for maths
21
 
22
  Pearl-7B-slerp is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
23
  * [mlabonne/OmniBeagle-7B](https://huggingface.co/mlabonne/OmniBeagle-7B)
24
  * [WizardLM/WizardMath-7B-V1.1](https://huggingface.co/WizardLM/WizardMath-7B-V1.1)
25
 
26
+ Spherical Linear Interpolation (SLERP) serves as a technique for seamlessly interpolating between two vectors while maintaining a constant rate of change and upholding the geometric properties of the spherical space in which these vectors exist.
27
+
28
+ Opting for SLERP over traditional linear interpolation is motivated by various considerations. Linear interpolation in high-dimensional spaces may result in a reduction in the magnitude of the interpolated vector, diminishing the scale of weights. Additionally, in many cases, the alteration in the weights' direction conveys more meaningful information, such as feature learning and representation, compared to the magnitude of change.
29
+
30
+ The implementation of SLERP involves the following steps:
31
+ - Normalize the input vectors to unit length, ensuring they signify directions rather than magnitudes.
32
+ - Calculate the angle between these vectors using their dot product.
33
+ - If the vectors are nearly collinear, the method defaults to linear interpolation for efficiency. Otherwise, SLERP calculates scale factors based on the interpolation factor t (where t=0 corresponds to 100% of the first vector, and t=1 corresponds to 100% of the second vector) and the angle between the vectors.
34
+ - Utilize these computed factors to weigh the original vectors, and then sum them to derive the interpolated vector.
35
+
36
+ In essence, SLERP provides a robust mechanism for interpolating vectors, offering advantages in preserving directional information and mitigating issues associated with linear interpolation in high-dimensional spaces.
37
+
38
+ ## Configuration
39
 
40
  ```yaml
41
  slices:
 
56
  dtype: bfloat16
57
  ```
58
 
59
+ ## Usage
60
 
61
  ```python
62
  !pip install -qU transformers accelerate