Instructions to use Qwen/Qwen3Guard-Stream-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3Guard-Stream-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Qwen/Qwen3Guard-Stream-4B", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3Guard-Stream-4B", trust_remote_code=True) model = AutoModel.from_pretrained("Qwen/Qwen3Guard-Stream-4B", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Bug in modelling qwen3 guard
#3
by marksverdhei - opened
from transformers.utils.generic import check_model_inputs
...
@check_model_inputs
instead of
@check_model_inputs
makes the example code break.