{"id":19066141,"url":"https://github.com/epfml/cobo","last_synced_at":"2025-02-22T03:16:10.715Z","repository":{"id":259090072,"uuid":"852840026","full_name":"epfml/CoBo","owner":"epfml","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-22T09:39:31.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-02T14:27:19.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epfml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T14:16:54.000Z","updated_at":"2024-10-22T09:39:35.000Z","dependencies_parsed_at":"2024-10-23T00:44:42.700Z","dependency_job_id":null,"html_url":"https://github.com/epfml/CoBo","commit_stats":null,"previous_names":["epfml/cobo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfml%2FCoBo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfml%2FCoBo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfml%2FCoBo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfml%2FCoBo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epfml","download_url":"https://codeload.github.com/epfml/CoBo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118419,"owners_count":19750491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T00:54:37.521Z","updated_at":"2025-02-22T03:16:10.699Z","avatar_url":"https://github.com/epfml.png","language":"Python","readme":"# CoBo: Collaborative learning via Bilevel optimization\n\nThis is the code base for the paper [CoBo: Collaborative Learning via Bilevel optimization](https://arxiv.org/abs/2409.05539)\n\n## Quickstart\n\nInstall dependencies:\n\n```\npip install -r requirements.txt\n```\n\n#### Generate dataset manually\n\nIf you want to generate datasets before running fine-tuning:\n\n```\npython ./src/gen_dataset.py \u003cdataset_name\u003e\n```\n\n### Base command\n\nThe code consists two parts:\n1. Personalized vision models\n2. Personalized collaborative learning which is based on the code base for [Personalized Collaborative Fine-tuning](https://github.com/epfml/personalized-collaborative-llms)\n\n   \nHere's the base command for running an experiment for collaborative training of language models on Wiki40b:\n\n```\npython ./personalized-collaborative-llms/src/main.py --trust cobo --trust_freq 1 \\\n --pretraining_rounds 0 --iterations 500 --num_clients 4 --eval_freq 5 \\\n --dataset wiki40b --config_format lora --use_pretrained gpt2 --lora_mlp \\\n --lora_causal_self_attention --lora_freeze_all_non_lora --no_compile\n```\n\nAnd this is the base command for running an experiment for collaborative training of modles on Cifar100:\n\n```\npython ./personalized-vision-models/run.py --bs_train 128 --bs_test 500 --workers 2 2 2 2 \\\n--gpus 1 --rho 0.05 --lr 0.1 --train_method cobo --iterations 40000 --run_name \u003crun-name\u003e\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfml%2Fcobo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepfml%2Fcobo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfml%2Fcobo/lists"}