You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the above code a direct run out of a model that can be used directly? Or does it need tuning or further training?Like
from transformers import pipeline
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("new")
model = AutoModelForMaskedLM.from_pretrained("new")
unmasker = pipeline("fill-mask",model=model,tokenizer=tokenizer,device = 0)
from pprint import pprint
pprint(unmasker(f"I come for {unmasker.tokenizer.mask_token} in last time!"))
Will the above application code come out with a good result? Based on your experience?
The text was updated successfully, but these errors were encountered:
Is the above code a direct run out of a model that can be used directly? Or does it need tuning or further training?Like
Will the above application code come out with a good result? Based on your experience?
The text was updated successfully, but these errors were encountered: