update scripts b4e31f5
root commited on
How to use NbAiLabArchive/test_NCC_small_pytorch with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="NbAiLabArchive/test_NCC_small_pytorch") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("NbAiLabArchive/test_NCC_small_pytorch")
model = AutoModelForMaskedLM.from_pretrained("NbAiLabArchive/test_NCC_small_pytorch", device_map="auto")