Update openclip/generate-embeddings-open.py
Browse files
openclip/generate-embeddings-open.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
#!/bin/env python
|
| 2 |
|
| 3 |
-
"""
|
| 4 |
-
|
| 5 |
Read in "dictionary" for list of works and token
|
| 6 |
Generate "proper" embedding for each token, and store in tensor file
|
| 7 |
Generate a tensor array of distance to every other token/embedding
|
| 8 |
-
Save it out to "
|
|
|
|
|
|
|
|
|
|
| 9 |
"""
|
| 10 |
|
| 11 |
|
|
|
|
| 1 |
#!/bin/env python
|
| 2 |
|
| 3 |
+
"""
|
| 4 |
+
Purpose:
|
| 5 |
Read in "dictionary" for list of works and token
|
| 6 |
Generate "proper" embedding for each token, and store in tensor file
|
| 7 |
Generate a tensor array of distance to every other token/embedding
|
| 8 |
+
Save it out to "mtype@mname.safetensors"
|
| 9 |
+
Warning:
|
| 10 |
+
Some models require more VRAM than others.
|
| 11 |
+
Some require more RAM than others.
|
| 12 |
"""
|
| 13 |
|
| 14 |
|