Skip to content
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

update refs #98

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/_basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout Demos🛎
uses: actions/checkout@v4
with:
repository: unifyai/demos
repository: ivy-llc/demos
path: demos
persist-credentials: false
submodules: "recursive"
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Checkout Ivy🛎
uses: actions/checkout@v4
with:
repository: unifyai/ivy
repository: ivy-llc/ivy
ref: ${{ inputs.nightly_binaries && 'nightly' || 'main' }}
path: ivy
persist-credentials: false
Expand All @@ -40,4 +40,4 @@ jobs:
- name: Run Integration testing for Basic Demos
id: tests
run: |
docker run -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy unifyai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} learn_the_basics/${{ matrix.mods }}.ipynb ${{ inputs.nightly_binaries }} true
docker run -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy transpileai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} learn_the_basics/${{ matrix.mods }}.ipynb ${{ inputs.nightly_binaries }} true
8 changes: 4 additions & 4 deletions .github/workflows/_demo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Checkout Demos🛎
uses: actions/checkout@v4
with:
repository: unifyai/demos
repository: ivy-llc/demos
path: demos
persist-credentials: false
submodules: "recursive"
Expand All @@ -44,7 +44,7 @@ jobs:
- name: Checkout Ivy🛎
uses: actions/checkout@v4
with:
repository: unifyai/ivy
repository: ivy-llc/ivy
ref: ${{ inputs.nightly_binaries && 'nightly' || 'main' }}
path: ivy
persist-credentials: false
Expand All @@ -53,5 +53,5 @@ jobs:

- name: Run Integration Tests for Enterprise Demos
run: |
docker pull unifyai/ivy:latest-gpu
docker run --rm --gpus all -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy unifyai/ivy:latest-gpu demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} examples_and_demos/${{ matrix.modules }}.ipynb ${{ inputs.nightly_binaries }} true
docker pull transpileai/ivy:latest-gpu
docker run --rm --gpus all -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy transpileai/ivy:latest-gpu demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} examples_and_demos/${{ matrix.modules }}.ipynb ${{ inputs.nightly_binaries }} true
6 changes: 3 additions & 3 deletions .github/workflows/run-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- name: Checkout Demos🛎
uses: actions/checkout@v4
with:
repository: unifyai/demos
repository: ivy-llc/demos
path: demos
persist-credentials: false
submodules: "recursive"
Expand All @@ -103,7 +103,7 @@ jobs:
- name: Checkout Ivy🛎
uses: actions/checkout@v4
with:
repository: unifyai/ivy
repository: ivy-llc/ivy
ref: ${{ env.VERSION }}
path: ivy
persist-credentials: false
Expand All @@ -112,4 +112,4 @@ jobs:

- name: Run README tests
run: |
docker run -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy unifyai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} readme ${{ inputs.nightly_binaries }} false
docker run -v "$(pwd)"/demos:/ivy/demos -v "$(pwd)"/ivy:/ivy/ivy transpileai/ivy:latest demos/tests/test_demos.sh ${{ secrets.USER_API_KEY }} readme ${{ inputs.nightly_binaries }} false
13 changes: 4 additions & 9 deletions Contributor_demos/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Welcome to the Contributor Demos section of our `unifyai/demos` repository! This
## Important Notes

- **Single PR Acceptance:** For each issue, only one PR will be merged. We encourage collaboration and communication within the community to combine efforts and submit the best possible solution.
- **Rising Contributors:** We're happy to welcome the contributors of the merged PR as Rising contributors [Rising Contributors](https://unify.ai/docs/ivy/overview/contributing/volunteer_program.html#rising-contributor) in our community. This status comes with recognition within our community and opportunities for further involvement in project development.
- **Rising Contributors:** We're happy to welcome the contributors of the merged PR as Rising contributors [Rising Contributors](https://ivy.dev/docs/overview/contributing/volunteer_program.html#rising-contributor) in our community. This status comes with recognition within our community and opportunities for further involvement in project development.

## Getting Started

Expand All @@ -16,7 +16,7 @@ Before diving into the code, we ask all interested contributors to fill out a sh
### Step 2: Setting up Ivy

Once you've filled out the form, you're ready to start contributing to the project of your choice. To get started, follow these steps:
1. Fork the [unifyai/demos](https://github.com/unifyai/demos) repository to your GitHub account.
1. Fork the [ivy-llc/demos](https://github.com/ivy-llc/demos) repository to your GitHub account.
2. Clone the forked repository to your local machine using the following command:
```bash
git clone <your-forked-repo-url>
Expand All @@ -29,17 +29,12 @@ Once you've filled out the form, you're ready to start contributing to the proje
```bash
git checkout -b <branch-name>
```
5. Create a virtual environment and install ivy(Alternatively, you can set up ivy in your local machine using the [official documentation](https://unify.ai/docs/ivy/overview/contributing/setting_up.html)):
5. Create a virtual environment and install ivy(Alternatively, you can set up ivy in your local machine using the [official documentation](https://ivy.dev/docs/overview/contributing/setting_up.html)):
```bash
python3 -m venv venv
source venv/bin/activate
pip install ivy
```
6. Generating API key:
- Navigate to [UnifyAI Console](https://console.unify.ai)
- Sign up/Log in to your account and create a new key for `Ivy Transpiler`
7. Create a new directory `.ivy` in the root of the project and create a file `key.pem` inside the `.ivy` directory.
8. Paste the API key in the `key.pem` file and save it.
If you have any issues with the setup, please feel free to ask for help on our [discord server](https://discord.gg/sg2QRAvY).

### Step 3: Solving an Issue
Expand All @@ -48,7 +43,7 @@ Start working on the issue you've chosen. Create a jupyter notebook under the di

### Step 4: Submitting Your Pull Request (PR)

After developing your solution, it's time to submit a Pull Request (PR) to the `unifyai/demos` repository. Make sure to link the specific issue you're addressing by including `closes <#issue no>.` in your PR description. This notation will help us track which PRs aim to solve which issues.
After developing your solution, it's time to submit a Pull Request (PR) to the `ivy-llc/demos` repository. Make sure to link the specific issue you're addressing by including `closes <#issue no>.` in your PR description. This notation will help us track which PRs aim to solve which issues.

[Watch the Tutorial](https://drive.google.com/file/d/1pu4D3Qsf3o3VpqDfGzLF7hADDswxDfEF/view?usp=share_link)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Demos

This repo holds all the jupyter notebook demos for the examples tab of Ivy's web. Relevant links:
- [List of open tasks avilable](https://github.com/unifyai/demos/issues/2)
- [Open discussion to suggest new examples](https://github.com/unifyai/demos/issues/1)
- [List of open tasks avilable](https://github.com/ivy-llc/demos/issues/2)
- [Open discussion to suggest new examples](https://github.com/ivy-llc/demos/issues/1)

All of the examples should be as comprehensible as possible, using easy-to-follow and attractive visuals (graphs, nicely formatted results, etc.), and follow the general tone of Ivy (feel free to include emojis and don't keep things super serious!).

Expand Down
2 changes: 1 addition & 1 deletion assets/01_template.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"outputs": [],
"source": [
"!pip install -q ivy\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install ."
Expand Down
6 changes: 3 additions & 3 deletions examples_and_demos/alexnet_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"source": [
"!pip install -q ivy\n",
"!pip install -q dm-haiku\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
Expand Down Expand Up @@ -84,7 +84,7 @@
},
"outputs": [],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/cat.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/cat.jpg\n",
"filename = \"cat.jpg\""
]
},
Expand Down Expand Up @@ -550,7 +550,7 @@
},
"outputs": [],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/dog.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/dog.jpg\n",
"filename = \"dog.jpg\"\n",
"# Preprocess torch image\n",
"from torchvision import transforms\n",
Expand Down
6 changes: 3 additions & 3 deletions examples_and_demos/alexnet_demo_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"source": [
"!pip install -q ivy\n",
"!pip install -q dm-haiku\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n"
Expand Down Expand Up @@ -196,7 +196,7 @@
},
"outputs": [],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/cat.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/cat.jpg\n",
"filename = \"cat.jpg\""
]
},
Expand Down Expand Up @@ -661,7 +661,7 @@
},
"outputs": [],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/dog.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/dog.jpg\n",
"filename = \"dog.jpg\"\n",
"# Preprocess torch image\n",
"from torchvision import transforms\n",
Expand Down
2 changes: 1 addition & 1 deletion examples_and_demos/bert_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
"id": "UNzGh6qS6sJR"
},
"source": [
"**First We import [the native ivy code for Bert](https://github.com/unifyai/models/blob/master/ivy_models/bert/bert.py)**"
"**First We import [the native ivy code for Bert](https://github.com/ivy-llc/models/blob/master/ivy_models/bert/bert.py)**"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples_and_demos/bert_demo_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"id": "UNzGh6qS6sJR"
},
"source": [
"**First We import [the native ivy code for Bert](https://github.com/unifyai/models/blob/master/ivy_models/bert/bert.py)**"
"**First We import [the native ivy code for Bert](https://github.com/ivy-llc/models/blob/master/ivy_models/bert/bert.py)**"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples_and_demos/image_segmentation_with_ivy_unet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"source": [
"!pip install -q ivy\n",
"!pip install -q dm-haiku\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
Expand Down Expand Up @@ -141,7 +141,7 @@
"source": [
"# Preprocess image\n",
"from PIL import Image\n",
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/car.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/car.jpg\n",
"filename = \"car.jpg\"\n",
"full_img = Image.open(filename)\n",
"torch_img = torch.from_numpy(preprocess(None, full_img, 0.5, False)).unsqueeze(0).to(\"cuda\")"
Expand Down
4 changes: 2 additions & 2 deletions examples_and_demos/image_segmentation_with_ivy_unet_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"source": [
"!pip install -q ivy\n",
"!pip install -q dm-haiku\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n"
Expand Down Expand Up @@ -138,7 +138,7 @@
"source": [
"# Preprocess image\n",
"from PIL import Image\n",
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/car.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/car.jpg\n",
"filename = \"car.jpg\"\n",
"full_img = Image.open(filename)\n",
"torch_img = torch.from_numpy(preprocess(None, full_img, 0.5, False)).unsqueeze(0)"
Expand Down
4 changes: 2 additions & 2 deletions examples_and_demos/resnet_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"outputs": [],
"source": [
"!pip install -q ivy\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
Expand Down Expand Up @@ -169,7 +169,7 @@
}
],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/cat.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/cat.jpg\n",
"filename = \"cat.jpg\""
]
},
Expand Down
4 changes: 2 additions & 2 deletions examples_and_demos/resnet_demo_cpu.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"outputs": [],
"source": [
"!pip install -q ivy\n",
"!git clone https://github.com/unifyai/models.git --depth 1\n",
"!git clone https://github.com/ivy-llc/models.git --depth 1\n",
"\n",
"# Installing models package from cloned repository! 😄\n",
"!cd models/ && pip install .\n",
Expand Down Expand Up @@ -166,7 +166,7 @@
}
],
"source": [
"!wget https://raw.githubusercontent.com/unifyai/models/master/images/cat.jpg\n",
"!wget https://raw.githubusercontent.com/ivy-llc/models/master/images/cat.jpg\n",
"filename = \"cat.jpg\""
]
},
Expand Down
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ a quick and general introduction to Ivy's features and capabilities!
.. note::

Want to use Ivy locally? Check out the `Get Started section of the docs
<https://unify.ai/docs/ivy/overview/get_started.html>`_!
<https://ivy.dev/docs/overview/get_started.html>`_!

.. include:: learn_the_basics.rst
:end-before: .. toctree::
Expand Down
2 changes: 1 addition & 1 deletion merge_with_upstream.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e
git checkout "$1"
git remote add upstream https://github.com/unifyai/demos.git || true
git remote add upstream https://github.com/ivy-llc/demos.git || true
git fetch upstream
git merge upstream/main --no-edit
git push
2 changes: 1 addition & 1 deletion misc/odsc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"metadata": {},
"outputs": [],
"source": [
"!git clone https://github.com/unifyai/ivy.git\n",
"!git clone https://github.com/ivy-llc/ivy.git\n",
"!cd ivy && git checkout f705efe7cb5d18df17ce6c1e20f04d0eb4933f48 && python3 -m pip install --user -e .\n",
"!pip install dm-haiku\n",
"!pip install kornia\n",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_README.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def forward(self, x):

def test_using_pytorch_any_model_from_jax():
# Get a pretrained haiku model
# https://github.com/unifyai/demos/blob/15c235f/scripts/deepmind_perceiver_io.py
# https://github.com/ivy-llc/demos/blob/15c235f/scripts/deepmind_perceiver_io.py

from deepmind_perceiver_io import key, perceiver_backbone

Expand Down Expand Up @@ -226,7 +226,7 @@ def call(self, x):

def test_using_tensorflow_any_model_from_jax():
# Get a pretrained haiku model
# https://github.com/unifyai/demos/blob/15c235f/scripts/deepmind_perceiver_io.py
# https://github.com/ivy-llc/demos/blob/15c235f/scripts/deepmind_perceiver_io.py
from deepmind_perceiver_io import key, perceiver_backbone

# Transpile it into a tf.keras.Model with the corresponding parameters
Expand Down
4 changes: 2 additions & 2 deletions wip/0_building_blocks/0_0_unify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
4 changes: 2 additions & 2 deletions wip/0_building_blocks/0_1_compile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
4 changes: 2 additions & 2 deletions wip/0_building_blocks/0_2_transpile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
4 changes: 2 additions & 2 deletions wip/1_the_basics/1_0_lazy_vs_eager.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
4 changes: 2 additions & 2 deletions wip/1_the_basics/1_1_framework_selection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
4 changes: 2 additions & 2 deletions wip/1_the_basics/1_2_as_a_decorator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"metadata": {},
"source": [
"::::: {#colab-button}\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/unifyai/demos/blob/main/{{< meta file >}})\n",
"[![Open in Colab]({{< var remote_badge.colab >}})](https://colab.research.google.com/github/ivy-llc/demos/blob/main/{{< meta file >}})\n",
"[![GitHub]({{< var remote_badge.github >}})](https://github.com/ivy-llc/demos/blob/main/{{< meta file >}})\n",
":::::"
]
},
Expand Down
Loading
Loading