Instructions to use zeromodels/qwen2-7b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/qwen2-7b-instruct with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/qwen2-7b-instruct") - Keras
How to use zeromodels/qwen2-7b-instruct with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/qwen2-7b-instruct") - Notebooks
- Google Colab
- Kaggle
Fix Collection badge link to the current zeromodels collection slug
Browse files
README.md
CHANGED
|
@@ -17,11 +17,11 @@ tags:
|
|
| 17 |
|
| 18 |
Paper: [Qwen2 Technical Report (arXiv:2407.10671)](https://arxiv.org/abs/2407.10671) 路 [HF Papers](https://huggingface.co/papers/2407.10671)
|
| 19 |
|
| 20 |
-
## ***See [our collection](https://huggingface.co/collections/zeromodels/qwen2-
|
| 21 |
|
| 22 |
# Run Qwen2 with Keras 3: JAX, PyTorch, or TensorFlow
|
| 23 |
|
| 24 |
-
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/qwen2/) [](https://huggingface.co/collections/zeromodels/qwen2-
|
| 25 |
|
| 26 |
# zeromodels/qwen2-7b-instruct
|
| 27 |
|
|
|
|
| 17 |
|
| 18 |
Paper: [Qwen2 Technical Report (arXiv:2407.10671)](https://arxiv.org/abs/2407.10671) 路 [HF Papers](https://huggingface.co/papers/2407.10671)
|
| 19 |
|
| 20 |
+
## ***See [our collection](https://huggingface.co/collections/zeromodels/qwen2-6a8eaf9702bfe6bba801f0bd) for all Qwen2 versions.***
|
| 21 |
|
| 22 |
# Run Qwen2 with Keras 3: JAX, PyTorch, or TensorFlow
|
| 23 |
|
| 24 |
+
[](https://github.com/IMvision12/ZeroModels) [](https://imvision12.github.io/ZeroModels/qwen2/) [](https://huggingface.co/collections/zeromodels/qwen2-6a8eaf9702bfe6bba801f0bd)
|
| 25 |
|
| 26 |
# zeromodels/qwen2-7b-instruct
|
| 27 |
|