nhuquynh10/firstdataset
Preview • Updated • 7
How to use nhuquynh10/testmodel with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="nhuquynh10/testmodel") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("nhuquynh10/testmodel")
model = AutoModelForMaskedLM.from_pretrained("nhuquynh10/testmodel")# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("nhuquynh10/testmodel")
model = AutoModelForMaskedLM.from_pretrained("nhuquynh10/testmodel")
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="nhuquynh10/testmodel")