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
- Xet hash:
- 55a5d477739a0cf4834159fce451d4dc1b2719fa2682ae505f8b66ae0e43d9bc
- Size of remote file:
- 5.34 GB
- SHA256:
- 962d9edfc4db817ea47b5c907532d437fb6c98944fccb65b3464a86c4647bcb7
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.