Nuran Kasthuriarachchi commited on
Commit
0bbc3c0
·
1 Parent(s): 72cb6f9

Add config

Browse files
Files changed (3) hide show
  1. .gitignore +479 -0
  2. adapter_config.json +29 -0
  3. config.json +23 -27
.gitignore ADDED
@@ -0,0 +1,479 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### PyCharm+iml template
2
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
3
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
4
+
5
+ # User-specific stuff
6
+ .idea/**/workspace.xml
7
+ .idea/**/tasks.xml
8
+ .idea/**/usage.statistics.xml
9
+ .idea/**/dictionaries
10
+ .idea/**/shelf
11
+
12
+ # AWS User-specific
13
+ .idea/**/aws.xml
14
+
15
+ # Generated files
16
+ .idea/**/contentModel.xml
17
+
18
+ # Sensitive or high-churn files
19
+ .idea/**/dataSources/
20
+ .idea/**/dataSources.ids
21
+ .idea/**/dataSources.local.xml
22
+ .idea/**/sqlDataSources.xml
23
+ .idea/**/dynamic.xml
24
+ .idea/**/uiDesigner.xml
25
+ .idea/**/dbnavigator.xml
26
+
27
+ # Gradle
28
+ .idea/**/gradle.xml
29
+ .idea/**/libraries
30
+
31
+ # Gradle and Maven with auto-import
32
+ # When using Gradle or Maven with auto-import, you should exclude module files,
33
+ # since they will be recreated, and may cause churn. Uncomment if using
34
+ # auto-import.
35
+ # .idea/artifacts
36
+ # .idea/compiler.xml
37
+ # .idea/jarRepositories.xml
38
+ # .idea/modules.xml
39
+ # .idea/*.iml
40
+ # .idea/modules
41
+ # *.iml
42
+ # *.ipr
43
+
44
+ # CMake
45
+ cmake-build-*/
46
+
47
+ # Mongo Explorer plugin
48
+ .idea/**/mongoSettings.xml
49
+
50
+ # File-based project format
51
+ *.iws
52
+
53
+ # IntelliJ
54
+ out/
55
+
56
+ # mpeltonen/sbt-idea plugin
57
+ .idea_modules/
58
+
59
+ # JIRA plugin
60
+ atlassian-ide-plugin.xml
61
+
62
+ # Cursive Clojure plugin
63
+ .idea/replstate.xml
64
+
65
+ # SonarLint plugin
66
+ .idea/sonarlint/
67
+
68
+ # Crashlytics plugin (for Android Studio and IntelliJ)
69
+ com_crashlytics_export_strings.xml
70
+ crashlytics.properties
71
+ crashlytics-build.properties
72
+ fabric.properties
73
+
74
+ # Editor-based Rest Client
75
+ .idea/httpRequests
76
+
77
+ # Android studio 3.1+ serialized cache file
78
+ .idea/caches/build_file_checksums.ser
79
+
80
+ ### JetBrains template
81
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
82
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
83
+
84
+ # User-specific stuff
85
+ .idea/**/workspace.xml
86
+ .idea/**/tasks.xml
87
+ .idea/**/usage.statistics.xml
88
+ .idea/**/dictionaries
89
+ .idea/**/shelf
90
+
91
+ # AWS User-specific
92
+ .idea/**/aws.xml
93
+
94
+ # Generated files
95
+ .idea/**/contentModel.xml
96
+
97
+ # Sensitive or high-churn files
98
+ .idea/**/dataSources/
99
+ .idea/**/dataSources.ids
100
+ .idea/**/dataSources.local.xml
101
+ .idea/**/sqlDataSources.xml
102
+ .idea/**/dynamic.xml
103
+ .idea/**/uiDesigner.xml
104
+ .idea/**/dbnavigator.xml
105
+
106
+ # Gradle
107
+ .idea/**/gradle.xml
108
+ .idea/**/libraries
109
+
110
+ # Gradle and Maven with auto-import
111
+ # When using Gradle or Maven with auto-import, you should exclude module files,
112
+ # since they will be recreated, and may cause churn. Uncomment if using
113
+ # auto-import.
114
+ # .idea/artifacts
115
+ # .idea/compiler.xml
116
+ # .idea/jarRepositories.xml
117
+ # .idea/modules.xml
118
+ # .idea/*.iml
119
+ # .idea/modules
120
+ # *.iml
121
+ # *.ipr
122
+
123
+ # CMake
124
+ cmake-build-*/
125
+
126
+ # Mongo Explorer plugin
127
+ .idea/**/mongoSettings.xml
128
+
129
+ # File-based project format
130
+ *.iws
131
+
132
+ # IntelliJ
133
+ out/
134
+
135
+ # mpeltonen/sbt-idea plugin
136
+ .idea_modules/
137
+
138
+ # JIRA plugin
139
+ atlassian-ide-plugin.xml
140
+
141
+ # Cursive Clojure plugin
142
+ .idea/replstate.xml
143
+
144
+ # SonarLint plugin
145
+ .idea/sonarlint/
146
+
147
+ # Crashlytics plugin (for Android Studio and IntelliJ)
148
+ com_crashlytics_export_strings.xml
149
+ crashlytics.properties
150
+ crashlytics-build.properties
151
+ fabric.properties
152
+
153
+ # Editor-based Rest Client
154
+ .idea/httpRequests
155
+
156
+ # Android studio 3.1+ serialized cache file
157
+ .idea/caches/build_file_checksums.ser
158
+
159
+ ### PyCharm template
160
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
161
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
162
+
163
+ # User-specific stuff
164
+ .idea/**/workspace.xml
165
+ .idea/**/tasks.xml
166
+ .idea/**/usage.statistics.xml
167
+ .idea/**/dictionaries
168
+ .idea/**/shelf
169
+
170
+ # AWS User-specific
171
+ .idea/**/aws.xml
172
+
173
+ # Generated files
174
+ .idea/**/contentModel.xml
175
+
176
+ # Sensitive or high-churn files
177
+ .idea/**/dataSources/
178
+ .idea/**/dataSources.ids
179
+ .idea/**/dataSources.local.xml
180
+ .idea/**/sqlDataSources.xml
181
+ .idea/**/dynamic.xml
182
+ .idea/**/uiDesigner.xml
183
+ .idea/**/dbnavigator.xml
184
+
185
+ # Gradle
186
+ .idea/**/gradle.xml
187
+ .idea/**/libraries
188
+
189
+ # Gradle and Maven with auto-import
190
+ # When using Gradle or Maven with auto-import, you should exclude module files,
191
+ # since they will be recreated, and may cause churn. Uncomment if using
192
+ # auto-import.
193
+ # .idea/artifacts
194
+ # .idea/compiler.xml
195
+ # .idea/jarRepositories.xml
196
+ # .idea/modules.xml
197
+ # .idea/*.iml
198
+ # .idea/modules
199
+ # *.iml
200
+ # *.ipr
201
+
202
+ # CMake
203
+ cmake-build-*/
204
+
205
+ # Mongo Explorer plugin
206
+ .idea/**/mongoSettings.xml
207
+
208
+ # File-based project format
209
+ *.iws
210
+
211
+ # IntelliJ
212
+ out/
213
+
214
+ # mpeltonen/sbt-idea plugin
215
+ .idea_modules/
216
+
217
+ # JIRA plugin
218
+ atlassian-ide-plugin.xml
219
+
220
+ # Cursive Clojure plugin
221
+ .idea/replstate.xml
222
+
223
+ # SonarLint plugin
224
+ .idea/sonarlint/
225
+
226
+ # Crashlytics plugin (for Android Studio and IntelliJ)
227
+ com_crashlytics_export_strings.xml
228
+ crashlytics.properties
229
+ crashlytics-build.properties
230
+ fabric.properties
231
+
232
+ # Editor-based Rest Client
233
+ .idea/httpRequests
234
+
235
+ # Android studio 3.1+ serialized cache file
236
+ .idea/caches/build_file_checksums.ser
237
+
238
+ ### Python template
239
+ # Byte-compiled / optimized / DLL files
240
+ __pycache__/
241
+ *.py[cod]
242
+ *$py.class
243
+
244
+ # C extensions
245
+ *.so
246
+
247
+ # Distribution / packaging
248
+ .Python
249
+ build/
250
+ develop-eggs/
251
+ dist/
252
+ downloads/
253
+ eggs/
254
+ .eggs/
255
+ lib/
256
+ lib64/
257
+ parts/
258
+ sdist/
259
+ var/
260
+ wheels/
261
+ share/python-wheels/
262
+ *.egg-info/
263
+ .installed.cfg
264
+ *.egg
265
+ MANIFEST
266
+
267
+ # PyInstaller
268
+ # Usually these files are written by a python script from a template
269
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
270
+ *.manifest
271
+ *.spec
272
+
273
+ # Installer logs
274
+ pip-log.txt
275
+ pip-delete-this-directory.txt
276
+
277
+ # Unit test / coverage reports
278
+ htmlcov/
279
+ .tox/
280
+ .nox/
281
+ .coverage
282
+ .coverage.*
283
+ .cache
284
+ nosetests.xml
285
+ coverage.xml
286
+ *.cover
287
+ *.py,cover
288
+ .hypothesis/
289
+ .pytest_cache/
290
+ cover/
291
+
292
+ # Translations
293
+ *.mo
294
+ *.pot
295
+
296
+ # Django stuff:
297
+ *.log
298
+ local_settings.py
299
+ db.sqlite3
300
+ db.sqlite3-journal
301
+
302
+ # Flask stuff:
303
+ instance/
304
+ .webassets-cache
305
+
306
+ # Scrapy stuff:
307
+ .scrapy
308
+
309
+ # Sphinx documentation
310
+ docs/_build/
311
+
312
+ # PyBuilder
313
+ .pybuilder/
314
+ target/
315
+
316
+ # Jupyter Notebook
317
+ .ipynb_checkpoints
318
+
319
+ # IPython
320
+ profile_default/
321
+ ipython_config.py
322
+
323
+ # pyenv
324
+ # For a library or package, you might want to ignore these files since the code is
325
+ # intended to run in multiple environments; otherwise, check them in:
326
+ # .python-version
327
+
328
+ # pipenv
329
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
330
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
331
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
332
+ # install all needed dependencies.
333
+ #Pipfile.lock
334
+
335
+ # poetry
336
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
337
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
338
+ # commonly ignored for libraries.
339
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
340
+ #poetry.lock
341
+
342
+ # pdm
343
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
344
+ #pdm.lock
345
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
346
+ # in version control.
347
+ # https://pdm.fming.dev/#use-with-ide
348
+ .pdm.toml
349
+
350
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
351
+ __pypackages__/
352
+
353
+ # Celery stuff
354
+ celerybeat-schedule
355
+ celerybeat.pid
356
+
357
+ # SageMath parsed files
358
+ *.sage.py
359
+
360
+ # Environments
361
+ .env
362
+ .venv
363
+ env/
364
+ venv/
365
+ ENV/
366
+ env.bak/
367
+ venv.bak/
368
+
369
+ # Spyder project settings
370
+ .spyderproject
371
+ .spyproject
372
+
373
+ # Rope project settings
374
+ .ropeproject
375
+
376
+ # mkdocs documentation
377
+ /site
378
+
379
+ # mypy
380
+ .mypy_cache/
381
+ .dmypy.json
382
+ dmypy.json
383
+
384
+ # Pyre type checker
385
+ .pyre/
386
+
387
+ # pytype static type analyzer
388
+ .pytype/
389
+
390
+ # Cython debug symbols
391
+ cython_debug/
392
+
393
+ # PyCharm
394
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
395
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
396
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
397
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
398
+ #.idea/
399
+
400
+ ### PyCharm+all template
401
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
402
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
403
+
404
+ # User-specific stuff
405
+ .idea/**/workspace.xml
406
+ .idea/**/tasks.xml
407
+ .idea/**/usage.statistics.xml
408
+ .idea/**/dictionaries
409
+ .idea/**/shelf
410
+
411
+ # AWS User-specific
412
+ .idea/**/aws.xml
413
+
414
+ # Generated files
415
+ .idea/**/contentModel.xml
416
+
417
+ # Sensitive or high-churn files
418
+ .idea/**/dataSources/
419
+ .idea/**/dataSources.ids
420
+ .idea/**/dataSources.local.xml
421
+ .idea/**/sqlDataSources.xml
422
+ .idea/**/dynamic.xml
423
+ .idea/**/uiDesigner.xml
424
+ .idea/**/dbnavigator.xml
425
+
426
+ # Gradle
427
+ .idea/**/gradle.xml
428
+ .idea/**/libraries
429
+
430
+ # Gradle and Maven with auto-import
431
+ # When using Gradle or Maven with auto-import, you should exclude module files,
432
+ # since they will be recreated, and may cause churn. Uncomment if using
433
+ # auto-import.
434
+ # .idea/artifacts
435
+ # .idea/compiler.xml
436
+ # .idea/jarRepositories.xml
437
+ # .idea/modules.xml
438
+ # .idea/*.iml
439
+ # .idea/modules
440
+ # *.iml
441
+ # *.ipr
442
+
443
+ # CMake
444
+ cmake-build-*/
445
+
446
+ # Mongo Explorer plugin
447
+ .idea/**/mongoSettings.xml
448
+
449
+ # File-based project format
450
+ *.iws
451
+
452
+ # IntelliJ
453
+ out/
454
+
455
+ # mpeltonen/sbt-idea plugin
456
+ .idea_modules/
457
+
458
+ # JIRA plugin
459
+ atlassian-ide-plugin.xml
460
+
461
+ # Cursive Clojure plugin
462
+ .idea/replstate.xml
463
+
464
+ # SonarLint plugin
465
+ .idea/sonarlint/
466
+
467
+ # Crashlytics plugin (for Android Studio and IntelliJ)
468
+ com_crashlytics_export_strings.xml
469
+ crashlytics.properties
470
+ crashlytics-build.properties
471
+ fabric.properties
472
+
473
+ # Editor-based Rest Client
474
+ .idea/httpRequests
475
+
476
+ # Android studio 3.1+ serialized cache file
477
+ .idea/caches/build_file_checksums.ser
478
+
479
+ .idea/*
adapter_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0.1,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 64,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "q_proj",
24
+ "v_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM",
27
+ "use_dora": false,
28
+ "use_rslora": false
29
+ }
config.json CHANGED
@@ -1,29 +1,25 @@
1
  {
2
- "alpha_pattern": {},
3
- "auto_mapping": null,
4
- "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf",
5
- "bias": "none",
6
- "fan_in_fan_out": false,
7
- "inference_mode": true,
8
- "init_lora_weights": true,
9
- "layer_replication": null,
10
- "layers_pattern": null,
11
- "layers_to_transform": null,
12
- "loftq_config": {},
13
- "lora_alpha": 16,
14
- "lora_dropout": 0.1,
15
- "megatron_config": null,
16
- "megatron_core": "megatron.core",
17
- "modules_to_save": null,
18
- "peft_type": "LORA",
19
- "r": 64,
20
- "rank_pattern": {},
21
- "revision": null,
22
- "target_modules": [
23
- "q_proj",
24
- "v_proj"
25
  ],
26
- "task_type": "CAUSAL_LM",
27
- "use_dora": false,
28
- "use_rslora": false
29
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ],
5
+ "bos_token_id": 1,
6
+ "eos_token_id": 2,
7
+ "hidden_act": "silu",
8
+ "hidden_size": 4096,
9
+ "initializer_range": 0.02,
10
+ "intermediate_size": 11008,
11
+ "max_position_embeddings": 4096,
12
+ "model_type": "llama",
13
+ "num_attention_heads": 32,
14
+ "num_hidden_layers": 32,
15
+ "num_key_value_heads": 32,
16
+ "pad_token_id": 0,
17
+ "pretraining_tp": 1,
18
+ "rms_norm_eps": 1e-05,
19
+ "rope_scaling": null,
20
+ "tie_word_embeddings": false,
21
+ "torch_dtype": "float16",
22
+ "transformers_version": "4.31.0.dev0",
23
+ "use_cache": true,
24
+ "vocab_size": 32000
25
+ }