| |
|
|
| |
|
|
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| from huggingface_hub import HfApi |
|
|
| api = HfApi() |
| repo_id = "Neroism8422/SwinOCSR_Sub_OCSR10_ExampleInput_20250905165205" |
|
|
| |
| api.create_repo(repo_id=repo_id, private=False, exist_ok=True) |
|
|
| |
| api.upload_folder( |
| folder_path="./merged_models/SwinOCSR_Sub_OCSR10_ExampleInput_20250905165205", |
| repo_id=repo_id, |
| commit_message="This is the LoRA on meta-llama/Meta-Llama-3-8B-Instruct, simple vision version of reproduce Mol-Instruct model, under the same dataset with full size text dataset, this is a text alignment reproduce version.", |
| |
| ) |
|
|
| api.upload_file( |
| path_or_fileobj="../examples/train_lora/SwinOCSR_category0_OCSR10/20250905165205/SwinOCSR_Sub_OCSR10_ExampleInput_20250905165205-llava3.yaml", |
| path_in_repo="tuning_config.yaml", |
| repo_id=repo_id, |
| commit_message="Add tuning configuration file, LlamaFactory can reproduce." |
| ) |
|
|
| api.upload_file( |
| path_or_fileobj="./merge_lora.yaml", |
| path_in_repo="merge_lora.yaml", |
| repo_id=repo_id, |
| commit_message="Add merge lora configuration file, LlamaFactory can reproduce." |
| ) |
| api.upload_file( |
| path_or_fileobj="./upload_model_hf.py", |
| path_in_repo="upload_model_hf.py", |
| repo_id=repo_id, |
| commit_message="Add merge lora configuration file, LlamaFactory can reproduce." |
| ) |
|
|