-
Notifications
You must be signed in to change notification settings - Fork 47
(10/n - non-xlformers conda-on-mast mvp)(monarch-fb/BUCK) Include torchx-fb as part of monarch.whl #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
3149116
to
71eca0e
Compare
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
71eca0e
to
3f65731
Compare
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
3f65731
to
7ee299a
Compare
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
7ee299a
to
28facf7
Compare
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
28facf7
to
c12bfc0
Compare
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
c12bfc0
to
3c4bc00
Compare
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
3c4bc00
to
a29cd5e
Compare
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
a29cd5e
to
82b79e8
Compare
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
82b79e8
to
e543500
Compare
…chx-fb as part of monarch.whl (#439) Summary: To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
e543500
to
af64d9a
Compare
This pull request was exported from Phabricator. Differential Revision: D77411375 |
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with: ``` buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl ``` To install: ``` pip install --force-reinstall --no-deps $(BUILD_CMD_ABOVE) ``` WARNING: monarch + torchx doesn't work yet! this is why it is behind the `--config monarch_whl.include=torchx`! I'm landing this so that others can repro the error and I can get help fixing it. ## Repro Instructions: ``` $ $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` should fail with ``` import monarch._rust_bindings ImportError: /home/kiuk/.fbpkg_conda_envs/xlformers_finetune_conda-9648802/lib/python3.10/site-packages/monarch/../monarch/lib/libomnibus.so: undefined symbol: __kmpc_fork_call ``` Reviewed By: highker Differential Revision: D77411375
af64d9a
to
3ee4f16
Compare
…chx-fb as part of monarch.whl (#439) Summary: Pull Request resolved: #439 Includes torchx_fb in `//monarch/python/monarch:monarch.whl` so that `monarch.tools.*` module (uses torchx programmatically) works. NOTE: Currently fails with `AttributeError: type object '_asyncio.Task' has no attribute '_step'` (full stacktrace: P1864708102) ## Repro Instructions: 1. Activate `xlformers_finetune_conda:stable` ``` $HOME/fbsource/genai/xlformers/dev/xl_conda.sh xlformers_finetune_conda:stable ``` 2. Build and install `monarch.whl` ``` $ cd ~/fbsource/fbcode $ pip install --force-reinstall --no-deps $(buck build @//mode/opt --show-full-simple-output --config monarch_whl.include=torchx //monarch/python/monarch:monarch.whl) ``` 3. Run the script (should fail with P1864708102) ``` $ cd ~/fbsource/fbcode/scripts/kiuk/examples/monarch_conda $ python main.py ``` Reviewed By: highker Differential Revision: D77411375
This pull request was exported from Phabricator. Differential Revision: D77411375 |
3ee4f16
to
8959456
Compare
Summary:
To bundle torchx-fb (with internal plugins such as being able to launch on MAST) build the wheel with:
To install:
WARNING: monarch + torchx doesn't work yet! this is why it is behind the
--config monarch_whl.include=torchx
! I'm landing this so that others can repro the error and I can get help fixing it.Repro Instructions:
should fail with
Reviewed By: highker
Differential Revision: D77411375