How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-classification", model="jkefeli/CancerStage_Classifier_M")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("jkefeli/CancerStage_Classifier_M")
model = AutoModelForSequenceClassification.from_pretrained("jkefeli/CancerStage_Classifier_M", device_map="auto")
Quick Links

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

Check out the documentation for more information.

To use the model, add the following from the transformers package:

(1) Tokenizer:

tokenizer = AutoTokenizer.from_pretrained("yikuan8/Clinical-BigBird")

(2) Model type:

#M in [0,1]

num_classes = 2

model = BigBirdForSequenceClassification.from_pretrained(directory, num_labels=num_classes)

Downloads last month
5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using jkefeli/CancerStage_Classifier_M 1