mrfakename
commited on
Commit
•
0e9d688
1
Parent(s):
7d56029
Update README.md
Browse files
README.md
CHANGED
@@ -11,4 +11,38 @@ tags:
|
|
11 |
---
|
12 |
# Mixtral-8x22B Original
|
13 |
|
14 |
-
The
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
# Mixtral-8x22B Original
|
13 |
|
14 |
+
The original weights for Mixtral 8x22B.
|
15 |
+
|
16 |
+
These weights are unconverted. For converted weights, see [mistral-community/Mixtral-8x22B-v0.1](https://huggingface.co/mistral-community/Mixtral-8x22B-v0.1).
|
17 |
+
|
18 |
+
## Joining Files
|
19 |
+
|
20 |
+
(Untested) script to join the files back together (run this where you downloaded the files):
|
21 |
+
|
22 |
+
```python
|
23 |
+
import os
|
24 |
+
from tqdm import tqdm
|
25 |
+
print('Opening files...')
|
26 |
+
files = os.listdir('.')
|
27 |
+
files = [file for file in files if file.startswith('consolidated.safetensors.')]
|
28 |
+
files_sorted = sorted(files, key=lambda x: int(x.split('.')[-1]))
|
29 |
+
output_file = 'consolidated.safetensors'
|
30 |
+
progress_bar = tqdm(total=len(files_sorted), desc='Joining Files')
|
31 |
+
with open(os.path.join(directory, output_file), 'wb') as output:
|
32 |
+
for file in files_sorted:
|
33 |
+
with open(os.path.join(directory, file), 'rb') as input_file:
|
34 |
+
output.write(input_file.read())
|
35 |
+
progress_bar.update(1)
|
36 |
+
progress_bar.close()
|
37 |
+
print('Done!')
|
38 |
+
```
|
39 |
+
|
40 |
+
It may take a while.
|
41 |
+
|
42 |
+
## Conversion to HF
|
43 |
+
|
44 |
+
It's in the Transformers repo.
|
45 |
+
|
46 |
+
## License
|
47 |
+
|
48 |
+
Mods on the Discord server suggested it was Apache 2.0 licensed but don't take my word for it.
|