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

pipe = pipeline("fill-mask", model="lucashu/TcmYiAnBERT")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("lucashu/TcmYiAnBERT")
model = AutoModelForMaskedLM.from_pretrained("lucashu/TcmYiAnBERT", device_map="auto")
Quick Links

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

Check out the documentation for more information.

概述

基于大规模中医医案数据在BERT中文模型上继续训练300轮得到的预训练模型

使用方式

from transformers import AutoTokenizer, AutoModelForMaskedLM

tokenizer = AutoTokenizer.from_pretrained("lucashu/TcmYiAnBERT")

model = AutoModelForMaskedLM.from_pretrained("lucashu/TcmYiAnBERT")
Downloads last month
47
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support