LLM collaboration
Project description
model_collaboration
The future is now.
Contributors who just joined us, read this
Thank you for joining this effort! Kindly do the following:
- Get familiar with "Github Setup" in this readme: you need to create your own branch, code in your branch, and submit pull requests from your branch to the dev branch. Never edit anything on the dev branch.
- Follow "After that, quick start!!" in this readme.
- Read the beginning of
model_collaboration/method/user_readme.mdand briefly check out the methods we already have here. - Follow
model_collaboration/method/sample_approach.pyandmodel_collaboration/method/developer_readme.mdto develop your own method. Try to use the helper functions provided there if possible (such asdistributed_generation.distributed_generation). - After you implemented and tested your method, git add commit push, open a pull request from your branch to dev, assign your point of contact and Shangbin as the two reviewers.
Github Setup
- Clone the repo with
https://github.com/BunsenFeng/model_collaboration.git. - Checkout to the dev branch:
git checkout dev - Pull the latest changes from the dev branch to your local dev branch:
git pull - Create your own feature/hotfix branch on local:
git checkout -b [your-local-branch-name] - Make edits on the scripts you care.
- Push any changes you made on your local branch to the GitHub server - after
git addandgit commitoperations, dogit push, you will seegit push --set-upstream origin [your-local-branch-name]suggested by github, copy and paste this command and run. - Open a new Pull Request from the GitHub webpage, make sure it's merging from
[your-local-branch-name]to thedevbranch. Add any reviewer and Shangbin that matters to the changes. - Once approved, merge the changes to the
devbranch. - After merging, you will see an option on the webpage to delete your own branch. Delete it.
- Loop from #2.
If you are in the middle of the development, and you need the latest changes from dev branch, follow the steps below:
- Keep track of the current changes you made on your local branch:
git addandgit commityour[your-local-branch-name] - Checkout to the dev branch:
git checkout dev - Pull the latest changes from the dev branch:
git pull - Check back to your local branch:
git checkout [your-local-branch-name] - Merge the changes from dev branch to your own branch:
git merge dev - Keep working on your own branch. done.
Questions about git? Don't take guesses, email svenyan234@gmail.com and cc bunsenfeng@gmail.com.
After that, quick start!!
conda env create -f environment.yml
conda activate model_collaboration
cd ..
git clone https://github.com/arcee-ai/mergekit.git
cd mergekit
pip install -e .
cd ..
cd model_collaboration
Run your first model collaboration experiment (if you don't have 3 GPUs, go to test_config.json and set "gpu_ids": [0], [0,1], or whatever you have; if your GPU is nice, increase batch_size):
python -m model_collaboration.main -c model_collaboration/test_config.json
You will see the outputs and evaluation results in the model_collaboration/logs/ folder.
See model_collaboration/method/user_readme.md for more details about different collaboration methods implemented.
Zhaoxuan (our evaluation tsar), additionally see model_collaboration/data/eval_readme.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file modelco-0.0.1.5.tar.gz.
File metadata
- Download URL: modelco-0.0.1.5.tar.gz
- Upload date:
- Size: 11.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
612a463fd239bce2efe22f45281ac24fd789b49b11844012f604b8543650f23b
|
|
| MD5 |
3aa50585faee408bc972b3b5361c2a6f
|
|
| BLAKE2b-256 |
7ff1a5d6ba0a1eebb791fa14e44054d999f4dc5d9a747c0a0e341fde3729702d
|
File details
Details for the file modelco-0.0.1.5-py3-none-any.whl.
File metadata
- Download URL: modelco-0.0.1.5-py3-none-any.whl
- Upload date:
- Size: 11.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09b0c64dc680b7484829b717a683d8287019e53e435c3367c29ad8cb87bd92d5
|
|
| MD5 |
7a3978dedb02aca590ebfca848bb7550
|
|
| BLAKE2b-256 |
133fa742cf4931e59d8244c50cc448761d4ad604be3c3d7ca1df866aa0f72c42
|