Downloads · 30 days
6
29% of all-time downloads
Lifan-Z/dummy-model
dummy-model is a fill-mask model from Lifan-Z. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
6
29% of all-time downloads
All-time downloads
21
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin443 MB · 99%
From the Hugging Face model README
import transformers
import gradio as gr
from transformers import pipeline
gpt2 = pipeline('text-generation', model = 'Lifan-Z/protGPT2_5') #最长1499个字母;1499/4=375
sequences = gpt2('<|endoftext|>', max_length=375, do_sample=True, top_k=950, repetition_penalty=1.2, num_return_sequences=10, eos_token_id=0)
for seq in sequences:
print(len(seq.get('generated_text')))
print(seq)