Update lm_finetuning.py
Browse files- lm_finetuning.py +2 -0
lm_finetuning.py
CHANGED
@@ -246,6 +246,8 @@ def main():
|
|
246 |
language_model=opt.model,
|
247 |
extra_desc= extra_desc
|
248 |
)
|
|
|
|
|
249 |
os.system(
|
250 |
f"cd {opt.model_alias} && git lfs install && git add . && git commit -m 'model update' && git push && cd ../")
|
251 |
shutil.rmtree(f"{opt.model_alias}") # clean up the cloned repo
|
|
|
246 |
language_model=opt.model,
|
247 |
extra_desc= extra_desc
|
248 |
)
|
249 |
+
with open(f"{opt.model_alias}/README.md"):
|
250 |
+
f.write(readme)
|
251 |
os.system(
|
252 |
f"cd {opt.model_alias} && git lfs install && git add . && git commit -m 'model update' && git push && cd ../")
|
253 |
shutil.rmtree(f"{opt.model_alias}") # clean up the cloned repo
|