Text Classification
Transformers
Safetensors
PyTorch
qwen2
text-generation
bitsandbytes
4-bit precision
quantized
qwen
decision-making
system-one
reasoning
jev
jevbench
joint-expected-value
classification
agent
fast-inference
text-embeddings-inference
Instructions to use AnkitNayak-dev/QJev-1.5B-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnkitNayak-dev/QJev-1.5B-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AnkitNayak-dev/QJev-1.5B-4bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AnkitNayak-dev/QJev-1.5B-4bit") model = AutoModelForCausalLM.from_pretrained("AnkitNayak-dev/QJev-1.5B-4bit", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Ankit Nayak commited on
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -87,6 +87,7 @@ class DecisionHead(nn.Module):
|
|
| 87 |
self.act = nn.GELU()
|
| 88 |
self.dropout = nn.Dropout(dropout)
|
| 89 |
self.out_proj = nn.Linear(intermediate_size, max_choices)
|
|
|
|
| 90 |
|
| 91 |
def forward(self, x: torch.Tensor, num_choices: torch.Tensor = None) -> torch.Tensor:
|
| 92 |
h = self.dropout(self.act(self.dense(self.norm(x))))
|
|
|
|
| 87 |
self.act = nn.GELU()
|
| 88 |
self.dropout = nn.Dropout(dropout)
|
| 89 |
self.out_proj = nn.Linear(intermediate_size, max_choices)
|
| 90 |
+
self.score_proj = nn.Linear(intermediate_size, 1)
|
| 91 |
|
| 92 |
def forward(self, x: torch.Tensor, num_choices: torch.Tensor = None) -> torch.Tensor:
|
| 93 |
h = self.dropout(self.act(self.dense(self.norm(x))))
|