prot_bert_bfd_ss3
收藏阿里云天池2026-05-15 更新2025-04-05 收录
下载链接:
https://tianchi.aliyun.com/dataset/200260
下载链接
链接失效反馈官方服务:
资源简介:
HuggingFace中Rostlab的prot_bert_bfd_ss3模型文件,因为国内被限制访问HuggingFace,需要手动下载上传使用,使用示例:
from transformers import AutoTokenizer, AutoModelForTokenClassification, TokenClassificationPipeline
# 本地模型文件夹路径
model_path = "/path/to/prot_bert_bfd_ss3"
# 加载本地模型和分词器
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForTokenClassification.from_pretrained(model_path)
# 创建pipeline
pipeline = TokenClassificationPipeline(
model=model,
tokenizer=tokenizer,
device=0 # 如果你在GPU上跑,设为0;CPU上跑可以设为-1
)
# 示例使用
sequence = "MKWVTFISLLFLFSSAYSRGVFRRDTHKSEIAHRFKDLGE"
results = pipeline(sequence)
print(results)
提供机构:
阿里云天池
创建时间:
2025-03-31



