Text Classification
setfit
ONNX
Safetensors
sentence-transformers
Chinese
English
qwen3
intent-classification
jina-embeddings-v5
chinese
coding
text-embeddings-inference
Instructions to use snival/intent-router-zh-setfit-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use snival/intent-router-zh-setfit-v2 with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("snival/intent-router-zh-setfit-v2") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use snival/intent-router-zh-setfit-v2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("snival/intent-router-zh-setfit-v2") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Download config.json from snival/intent-router-zh-setfit-v2: direct link, hf CLI and curl.
- Browser
- Download file 1.54 kB
-
https://huggingface.co/snival/intent-router-zh-setfit-v2/resolve/main/config.json
- Command line
-
hf download hf://snival/intent-router-zh-setfit-v2/config.json
-
curl -L -o config.json https://huggingface.co/snival/intent-router-zh-setfit-v2/resolve/main/config.json
1.54 kB
| { | |
| "architectures": [ | |
| "Qwen3Model" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "dtype": "float32", | |
| "eos_token_id": 151645, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_types": [ | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 28, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 151643, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": 3500000, | |
| "rope_type": "default" | |
| }, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "sliding_window": null, | |
| "task_names": [ | |
| "retrieval", | |
| "text-matching", | |
| "clustering", | |
| "classification" | |
| ], | |
| "tie_word_embeddings": true, | |
| "transformers_version": "4.57.6", | |
| "use_cache": false, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| } | |