Run this model with HF Jobs

Run LsTam/MQ-classification on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/LsTam/MQ-classification. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/LsTam/MQ-classification on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

To use this model

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("xlm-roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("LsTam/MQ-classification")

softmax = torch.nn.Softmax(dim=1)
prediction = lambda p : [(a[0] < a[1]) * 1 for a in p]

# 0 is for wrong question and 1 for good ones

text = ['Your question' + ' </s> ' + 'your context']

a = tokenizer(text, return_tensors="pt")
result = model(**a)
pred = prediction(softmax(result.logits).tolist())
Downloads last month
4
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support