bardofcodes commited on
Commit
a2e6cbd
·
1 Parent(s): e37367c
.gitignore ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Project specific
2
+ notebooks/*
3
+
4
+ # from: https://github.com/microsoft/vscode-python/blob/main/.gitignore
5
+ .DS_Store
6
+ .huskyrc.json
7
+ out
8
+ log.log
9
+ **/node_modules
10
+ *.pyc
11
+ *.vsix
12
+ **/.vscode/.ropeproject/**
13
+ **/testFiles/**/.cache/**
14
+ *.noseids
15
+ .nyc_output
16
+ .vscode-test
17
+ __pycache__
18
+ npm-debug.log
19
+ **/.mypy_cache/**
20
+ !yarn.lock
21
+ coverage/
22
+ cucumber-report.json
23
+ **/.vscode-test/**
24
+ **/.vscode test/**
25
+ **/.vscode-smoke/**
26
+ **/.venv*/
27
+ port.txt
28
+ precommit.hook
29
+ pythonFiles/lib/**
30
+ pythonFiles/get_pip.py
31
+ debug_coverage*/**
32
+ languageServer/**
33
+ languageServer.*/**
34
+ bin/**
35
+ obj/**
36
+ .pytest_cache
37
+ tmp/**
38
+ .python-version
39
+ .vs/
40
+ test-results*.xml
41
+ xunit-test-results.xml
42
+ build/ci/performance/performance-results.json
43
+ !build/
44
+ debug*.log
45
+ debugpy*.log
46
+ pydevd*.log
47
+ nodeLanguageServer/**
48
+ nodeLanguageServer.*/**
49
+ dist/**
50
+ # translation files
51
+ *.xlf
52
+ package.nls.*.json
53
+ l10n/
54
+ # from: https://github.com/github/gitignore/blob/main/Python.gitignore
55
+
56
+ # Byte-compiled / optimized / DLL files
57
+ __pycache__/
58
+ *.py[cod]
59
+ *$py.class
60
+
61
+ # C extensions
62
+ *.so
63
+
64
+ # Distribution / packaging
65
+ .Python
66
+ build/
67
+ develop-eggs/
68
+ dist/
69
+ downloads/
70
+ eggs/
71
+ .eggs/
72
+ lib/
73
+ lib64/
74
+ parts/
75
+ sdist/
76
+ var/
77
+ wheels/
78
+ share/python-wheels/
79
+ *.egg-info/
80
+ .installed.cfg
81
+ *.egg
82
+ MANIFEST
83
+
84
+ # PyInstaller
85
+ # Usually these files are written by a python script from a template
86
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
87
+ *.manifest
88
+ *.spec
89
+
90
+ # Installer logs
91
+ pip-log.txt
92
+ pip-delete-this-directory.txt
93
+
94
+ # Unit test / coverage reports
95
+ htmlcov/
96
+ .tox/
97
+ .nox/
98
+ .coverage
99
+ .coverage.*
100
+ .cache
101
+ nosetests.xml
102
+ coverage.xml
103
+ *.cover
104
+ *.py,cover
105
+ .hypothesis/
106
+ .pytest_cache/
107
+ cover/
108
+
109
+ # Translations
110
+ *.mo
111
+ *.pot
112
+
113
+ # Django stuff:
114
+ *.log
115
+ local_settings.py
116
+ db.sqlite3
117
+ db.sqlite3-journal
118
+
119
+ # Flask stuff:
120
+ instance/
121
+ .webassets-cache
122
+
123
+ # Scrapy stuff:
124
+ .scrapy
125
+
126
+ # Sphinx documentation
127
+ docs/_build/
128
+
129
+ # PyBuilder
130
+ .pybuilder/
131
+ target/
132
+
133
+ # Jupyter Notebook
134
+ .ipynb_checkpoints
135
+
136
+ # IPython
137
+ profile_default/
138
+ ipython_config.py
139
+
140
+ # pyenv
141
+ # For a library or package, you might want to ignore these files since the code is
142
+ # intended to run in multiple environments; otherwise, check them in:
143
+ # .python-version
144
+
145
+ # pipenv
146
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
147
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
148
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
149
+ # install all needed dependencies.
150
+ #Pipfile.lock
151
+
152
+ # poetry
153
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
154
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
155
+ # commonly ignored for libraries.
156
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
157
+ #poetry.lock
158
+
159
+ # pdm
160
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
161
+ #pdm.lock
162
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
163
+ # in version control.
164
+ # https://pdm.fming.dev/#use-with-ide
165
+ .pdm.toml
166
+
167
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
168
+ __pypackages__/
169
+
170
+ # Celery stuff
171
+ celerybeat-schedule
172
+ celerybeat.pid
173
+
174
+ # SageMath parsed files
175
+ *.sage.py
176
+
177
+ # Environments
178
+ .env
179
+ .venv
180
+ env/
181
+ venv/
182
+ ENV/
183
+ env.bak/
184
+ venv.bak/
185
+
186
+ # Spyder project settings
187
+ .spyderproject
188
+ .spyproject
189
+
190
+ # Rope project settings
191
+ .ropeproject
192
+
193
+ # mkdocs documentation
194
+ /site
195
+
196
+ # mypy
197
+ .mypy_cache/
198
+ .dmypy.json
199
+ dmypy.json
200
+
201
+ # Pyre type checker
202
+ .pyre/
203
+
204
+ # pytype static type analyzer
205
+ .pytype/
206
+
207
+ # Cython debug symbols
208
+ cython_debug/
209
+
210
+ # PyCharm
211
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
212
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
213
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
214
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
215
+ #.idea/
analogy_encoder/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .analogy_encoder import AnalogyEncoder
analogy_encoder/config.json CHANGED
@@ -119,7 +119,7 @@
119
  "use_bfloat16": false,
120
  "use_swiglu_ffn": false
121
  },
122
- "load_pretrained": false,
123
  "siglip_config_dict": {
124
  "_attn_implementation_autoset": false,
125
  "_name_or_path": "",
 
119
  "use_bfloat16": false,
120
  "use_swiglu_ffn": false
121
  },
122
+ "load_pretrained": true,
123
  "siglip_config_dict": {
124
  "_attn_implementation_autoset": false,
125
  "_name_or_path": "",
analogy_input_processor/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .analogy_input_processor import AnalogyInputProcessor
analogy_projector/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from .analogy_projector import AnalogyProjector