Commit ·
a588a0a
1
Parent(s): a831524
Training in progress, step 59500
Browse files- adapter_config.json +4 -4
- adapter_model.bin +1 -1
- gitsaves.py +30 -0
- special_tokens_map.json +6 -0
- tokenizer.model +3 -0
- tokenizer_config.json +36 -0
- training_args.bin +2 -2
adapter_config.json
CHANGED
|
@@ -14,12 +14,12 @@
|
|
| 14 |
"r": 32,
|
| 15 |
"revision": null,
|
| 16 |
"target_modules": [
|
| 17 |
-
"
|
| 18 |
-
"down_proj",
|
| 19 |
-
"q_proj",
|
| 20 |
"v_proj",
|
|
|
|
| 21 |
"k_proj",
|
| 22 |
-
"
|
|
|
|
| 23 |
"o_proj"
|
| 24 |
],
|
| 25 |
"task_type": "CAUSAL_LM"
|
|
|
|
| 14 |
"r": 32,
|
| 15 |
"revision": null,
|
| 16 |
"target_modules": [
|
| 17 |
+
"gate_proj",
|
|
|
|
|
|
|
| 18 |
"v_proj",
|
| 19 |
+
"down_proj",
|
| 20 |
"k_proj",
|
| 21 |
+
"q_proj",
|
| 22 |
+
"up_proj",
|
| 23 |
"o_proj"
|
| 24 |
],
|
| 25 |
"task_type": "CAUSAL_LM"
|
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 500897101
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e72cdd9521ac3e5299609e7c257e6e96d04cdc5eb4ebb588d3bb1c2650ef97dd
|
| 3 |
size 500897101
|
gitsaves.py
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import time
|
| 3 |
+
import subprocess
|
| 4 |
+
|
| 5 |
+
# Function to update .gitignore file
|
| 6 |
+
def update_gitignore():
|
| 7 |
+
with open(".gitignore", "w") as gitignore_file:
|
| 8 |
+
gitignore_file.write("gitsaves.py\n")
|
| 9 |
+
|
| 10 |
+
# Function to perform git commit and push
|
| 11 |
+
def git_commit_and_push():
|
| 12 |
+
current_time = time.strftime("%Y-%m-%d %H:%M:%S")
|
| 13 |
+
commit_message = f"{current_time} Autosave for checkpoint additions"
|
| 14 |
+
|
| 15 |
+
print("Pushing with commit `"+commit_message+"`")
|
| 16 |
+
subprocess.run(["git", "add", "."])
|
| 17 |
+
subprocess.run(["git", "commit", "-m", commit_message])
|
| 18 |
+
subprocess.run(["git", "push"])
|
| 19 |
+
|
| 20 |
+
# Main loop
|
| 21 |
+
if __name__ == "__main__":
|
| 22 |
+
try:
|
| 23 |
+
while True:
|
| 24 |
+
update_gitignore()
|
| 25 |
+
git_commit_and_push()
|
| 26 |
+
print(f"Autosaved at {time.strftime('%H:%M:%S')}")
|
| 27 |
+
time.sleep(600) # Sleep for 10 minutes (600 seconds)
|
| 28 |
+
except KeyboardInterrupt:
|
| 29 |
+
print("Autosave stopped.")
|
| 30 |
+
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": "<s>",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"unk_token": "<unk>"
|
| 6 |
+
}
|
tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
| 3 |
+
size 499723
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"bos_token": {
|
| 5 |
+
"__type": "AddedToken",
|
| 6 |
+
"content": "<s>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": true,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false
|
| 11 |
+
},
|
| 12 |
+
"clean_up_tokenization_spaces": false,
|
| 13 |
+
"eos_token": {
|
| 14 |
+
"__type": "AddedToken",
|
| 15 |
+
"content": "</s>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": true,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false
|
| 20 |
+
},
|
| 21 |
+
"legacy": null,
|
| 22 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 23 |
+
"pad_token": null,
|
| 24 |
+
"sp_model_kwargs": {},
|
| 25 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 26 |
+
"trust_remote_code": false,
|
| 27 |
+
"unk_token": {
|
| 28 |
+
"__type": "AddedToken",
|
| 29 |
+
"content": "<unk>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": true,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false
|
| 34 |
+
},
|
| 35 |
+
"use_fast": true
|
| 36 |
+
}
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35750ce2c97e67db338d1121db50269062def2ea29de48747dfd43b7a072ee79
|
| 3 |
+
size 4155
|