-
Notifications
You must be signed in to change notification settings - Fork 46
Feature/qwen3 vl #133
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
Closed
Closed
Feature/qwen3 vl #133
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
de7432f
adding readme, modeling and params files for dinov3
coder0143 0f5f9d4
added run and testing
coder0143 2c24d24
added readme and removed some basic imports
coder0143 4507250
removed ignore statement for ide
coder0143 078e933
Added colab link in markdown
coder0143 6ec2690
Merge branch 'main' into main
coder0143 5b1a81e
changed config and made changes wrt it, added all outputs, removed co…
coder0143 d818a67
adding more tests and some final changes
coder0143 0273b54
final changes to params
coder0143 a2e0241
fixed ruff based text formatting
coder0143 5c3d6c6
using random init torch model in test_outputs and removed run_model d…
coder0143 b0bb52f
using hf_hub constants for path and pre-commit done for ruff
coder0143 23d3c0a
updating tests
coder0143 ba596c5
rename test_outputs to be model specific
jenriver e410e74
Merge branch 'main' into main
jenriver e0d33b1
inital commit for qwen3vl
coder0143 039881c
removed initial commit
coder0143 0b8e32e
vjepa2 base fm, classifier and params done
coder0143 0e1b4ca
fixed params and testing for model porting
coder0143 259c8a2
updating for additional testing and stability
coder0143 542350b
more testing, ruff, classifier works well
coder0143 48592d1
Merge branch 'main' into main
coder0143 b66d3dd
Merge branch 'jax-ml:main' into main
coder0143 63a53ea
fixed foundation model, reformatted modeling.py, fixed testing
coder0143 ff2a152
adding readme
coder0143 8da697d
name in readme 😅
coder0143 450f8a8
initial commit for qwen3-vl
coder0143 7858ed1
rename to qwen3_vl
coder0143 96c1439
some more changes
coder0143 5067fd9
tests fix
coder0143 b530298
changes for other folder for conflict
coder0143 8be6b41
Model works well
coder0143 094832e
done!
coder0143 206c991
vae implementation (#122)
eari100 dab4da4
Refactor tutorial to use dataclass for configuration (#119)
Aatman09 d56e624
Fixed resnet link in README (#127)
vfdev-5 80834cb
Vjepa2 format fixes (#128)
jenriver 6056d48
[CI] run_selective_tests: handle renamed paths (#129)
jenriver 824c56a
remove dinov3 output class to facilitate jit compilation
coder0143 df7bb07
Merge branch 'jax-ml:main' into feature/qwen3-vl
coder0143 6281617
some more test and run changes
coder0143 339c0e0
Adding Readme
coder0143 11f3b16
cleaning init
coder0143 1994a17
Added config for 32B
coder0143 9fe3006
Merge branch 'main' into feature/qwen3-vl
jenriver 0cca8a2
Merge branch 'main' into feature/qwen3-vl
jenriver 29003eb
readme, params, run_model changed
coder0143 22a819b
changes to modeling
coder0143 ed4f56b
fix (test)
coder0143 095c80a
fixed tests and added more
coder0143 1f5e429
using tempfile, more accuracy in tests
coder0143 9ea2bcb
Merge branch 'jax-ml:main' into feature/qwen3-vl
coder0143 73d300e
sharding!
coder0143 f25430f
updated sharding
coder0143 6e9f0d3
fix sharding for 8b
coder0143 01c1eda
updated tests
coder0143 87f1d50
fixes
coder0143 4a70b27
fix with debug
coder0143 933a3af
fix
coder0143 813aa64
final fixes
coder0143 61cbd73
tolerance
coder0143 d511429
Merge branch 'jax-ml:main' into feature/qwen3-vl
coder0143 506f47d
Updated readme
coder0143 e12c7f6
Merge branch 'main' into feature/qwen3-vl
jenriver cb57afc
changes to modeling
coder0143 1e03259
vision shd fix
coder0143 d5f5d35
undo
coder0143 1aa7f81
retry
coder0143 533618d
memory efficient tests
coder0143 bee40da
fixed modeling and tests
coder0143 5add4f9
Merge branch 'main' into feature/qwen3-vl
jenriver 7ce0224
Merge branch 'main' into feature/qwen3-vl
jenriver bde722c
Merge branch 'main' into feature/qwen3-vl
coder0143 74d6396
Merge branch 'main' into feature/qwen3-vl
coder0143 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Qwen3-VL in JAX | ||
|
|
||
| This directory contains a pure JAX implementation of the [Qwen3-VL SOTA Vision Language Model](https://github.com/QwenLM/Qwen3-VL), using the [Flax NNX](https://flax.readthedocs.io/en/stable/index.html) API. | ||
|
|
||
|
|
||
| ## Model Configuration Support Status | ||
|
|
||
| | Model Name | Config Support Status | | ||
| | :--- | :--- | | ||
| | **Dense Models** | | | ||
| | [Qwen3-VL-2B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-2B-Instruct) | **✅ Supported** | | ||
| | [Qwen3-VL-2B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-2B-Thinking) | **✅ Supported** | | ||
| | [Qwen3-VL-4B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct) | **✅ Supported** | | ||
| | [Qwen3-VL-4B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-4B-Thinking) | **✅ Supported** | | ||
| | [Qwen3-VL-8B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct) | **✅ Supported** | | ||
| | [Qwen3-VL-8B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-8B-Thinking) | **✅ Supported** | | ||
| | [Qwen3-VL-32B-Instruct](https://huggingface.co/Qwen/Qwen3-VL-32B-Instruct) | **✅ Supported** | | ||
| | [Qwen3-VL-32B-Thinking](https://huggingface.co/Qwen/Qwen3-VL-32B-Thinking) | **✅ Supported** | | ||
| | [NVIDIA-Cosmos-Reason2-2B](https://huggingface.co/nvidia/Cosmos-Reason2-2B) | **✅ Supported** | | ||
| | [NVIDIA-Cosmos-Reason2-8B](https://huggingface.co/nvidia/Cosmos-Reason2-8B) | **✅ Supported** | | ||
|
|
||
| | **MoE Models** | | | ||
| | [Qwen3-VL-30B-A3B](https://huggingface.co/Qwen/Qwen3-30B-A3B) | **🟡 Not started** | | ||
| | [Qwen3-VL-235B-A22B](https://huggingface.co/Qwen/Qwen3-235B-A22B) | **🟡 Not started** | | ||
|
|
||
|
|
||
| ### Running this model | ||
|
|
||
| Run Qwen3 in action, implemented in [900 lines of code](bonsai/models/qwen3_vl/modeling.py) in JAX. | ||
|
|
||
| ```sh | ||
| python3 -m bonsai.models.qwen3_vl.tests.run_model | ||
| ``` | ||
|
|
||
|
|
||
| ## How to contribute to this model | ||
|
|
||
| We welcome contributions! You can contribute to this model via the following: | ||
| * Add a model config variant from the above `🟡 Not started` to `class ModelConfig` in [modeling.py](modeling.py). Make sure your code is runnable on at least one hardware before creating a PR. | ||
| * Got some hardware? Run [run_model.py](tests/run_model.py) the existing configs above on hardwares marked `❔ Needs check`. Mark as `✅ Runs` or `⛔️ Not supported`. | ||
Empty file.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you update this filename to
README.md