End of training 6c81e83
Forest commited on
How to use zhfanrui/dandg with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="zhfanrui/dandg") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("zhfanrui/dandg")
model = AutoModelForTokenClassification.from_pretrained("zhfanrui/dandg", device_map="auto")