Zero-Shot Classification
Transformers
ONNX
Safetensors
English
GLiClass
text classification
zero-shot
small language models
RAG
sentiment analysis
Instructions to use knowledgator/gliclass-large-v1.0-lw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use knowledgator/gliclass-large-v1.0-lw with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="knowledgator/gliclass-large-v1.0-lw")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("knowledgator/gliclass-large-v1.0-lw", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -109,7 +109,7 @@
|
|
| 109 |
"projector_hidden_act": "gelu",
|
| 110 |
"prompt_first": true,
|
| 111 |
"scorer_type": "mlp",
|
| 112 |
-
"squeeze_layers":
|
| 113 |
"text_token_index": 128002,
|
| 114 |
"torch_dtype": "float32",
|
| 115 |
"transformers_version": "4.41.2",
|
|
|
|
| 109 |
"projector_hidden_act": "gelu",
|
| 110 |
"prompt_first": true,
|
| 111 |
"scorer_type": "mlp",
|
| 112 |
+
"squeeze_layers": false,
|
| 113 |
"text_token_index": 128002,
|
| 114 |
"torch_dtype": "float32",
|
| 115 |
"transformers_version": "4.41.2",
|