svjack / prompt-extend-chinese-gpt

huggingface.co
Total runs: 23
24-hour runs: 0
7-day runs: 0
30-day runs: 11
Model's Last Updated: February 20 2023
text-generation

Introduction of prompt-extend-chinese-gpt

Model Details of prompt-extend-chinese-gpt

from transformers import BertTokenizer, GPT2LMHeadModel
device = "cpu"

model_path = "svjack/prompt-extend-chinese-gpt"
tokenizer = BertTokenizer.from_pretrained(model_path)
model = GPT2LMHeadModel.from_pretrained(model_path)

prompt = "一只凶猛的老虎,咬死了一只豺狼。"

encode = tokenizer(prompt, return_tensors='pt').to(device)
answer = model.generate(encode.input_ids,
                       max_length = 128,
    num_beams=2,
    top_p = 0.95,
    top_k = 50,
    repetition_penalty = 2.5,
    length_penalty=1.0,
    early_stopping=True,
                       )[0]
decoded = tokenizer.decode(answer, skip_special_tokens=True)
decoded

'一 只 凶 猛 的 老 虎 , 咬 死 了 一 只 豺 狼 。 高 度 详 细 , 数 字 绘 画 , 艺 术 站 , 概 念 艺 术 , 锐 利 的 焦 点 , 插 图 , 电 影 照 明 , 艺 术 由 artgerm 和 greg rutkowski 和 alphonse mucha 8 k 彩 色 辛 烷 渲 染 。'

Runs of svjack prompt-extend-chinese-gpt on huggingface.co

23
Total runs
0
24-hour runs
1
3-day runs
0
7-day runs
11
30-day runs

More Information About prompt-extend-chinese-gpt huggingface.co Model

prompt-extend-chinese-gpt huggingface.co

prompt-extend-chinese-gpt huggingface.co is an AI model on huggingface.co that provides prompt-extend-chinese-gpt's model effect (), which can be used instantly with this svjack prompt-extend-chinese-gpt model. huggingface.co supports a free trial of the prompt-extend-chinese-gpt model, and also provides paid use of the prompt-extend-chinese-gpt. Support call prompt-extend-chinese-gpt model through api, including Node.js, Python, http.

prompt-extend-chinese-gpt huggingface.co Url

https://huggingface.co/svjack/prompt-extend-chinese-gpt

svjack prompt-extend-chinese-gpt online free

prompt-extend-chinese-gpt huggingface.co is an online trial and call api platform, which integrates prompt-extend-chinese-gpt's modeling effects, including api services, and provides a free online trial of prompt-extend-chinese-gpt, you can try prompt-extend-chinese-gpt online for free by clicking the link below.

svjack prompt-extend-chinese-gpt online free url in huggingface.co:

https://huggingface.co/svjack/prompt-extend-chinese-gpt

prompt-extend-chinese-gpt install

prompt-extend-chinese-gpt is an open source model from GitHub that offers a free installation service, and any user can find prompt-extend-chinese-gpt on GitHub to install. At the same time, huggingface.co provides the effect of prompt-extend-chinese-gpt install, users can directly use prompt-extend-chinese-gpt installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

prompt-extend-chinese-gpt install url in huggingface.co:

https://huggingface.co/svjack/prompt-extend-chinese-gpt

Url of prompt-extend-chinese-gpt

prompt-extend-chinese-gpt huggingface.co Url

Provider of prompt-extend-chinese-gpt huggingface.co

svjack
ORGANIZATIONS

Other API from svjack

huggingface.co

Total runs: 20
Run Growth: 7
Growth Rate: 35.00%
Updated:February 23 2024
huggingface.co

Total runs: 17
Run Growth: 6
Growth Rate: 35.29%
Updated:February 20 2023
huggingface.co

Total runs: 2
Run Growth: 0
Growth Rate: 0.00%
Updated:March 05 2024