WangZeJun / bloom-820m-chat

huggingface.co
Total runs: 121
24-hour runs: -2
7-day runs: -6
30-day runs: 26
Model's Last Updated: June 15 2023
text-generation

Introduction of bloom-820m-chat

Model Details of bloom-820m-chat

https://github.com/zejunwang1/bloom_tuning

可以通过如下代码调用 bloom-820m-chat 模型来生成对话:

from transformers import BloomTokenizerFast, BloomForCausalLM

model_name_or_path = "WangZeJun/bloom-820m-chat"

tokenizer = BloomTokenizerFast.from_pretrained(model_name_or_path)
model = BloomForCausalLM.from_pretrained(model_name_or_path).cuda()
model = model.eval()

input_pattern = "{}</s>"
text = "你好"
input_ids = tokenizer(input_pattern.format(text), return_tensors="pt").input_ids
input_ids = input_ids.cuda()

outputs = model.generate(input_ids, do_sample=True, max_new_tokens=1024, top_p=0.85,
    temperature=0.3, repetition_penalty=1.2, eos_token_id=tokenizer.eos_token_id)

input_ids_len = input_ids.size(1)
response_ids = outputs[0][input_ids_len:]
response = tokenizer.decode(response_ids)
print(response)

Runs of WangZeJun bloom-820m-chat on huggingface.co

121
Total runs
-2
24-hour runs
2
3-day runs
-6
7-day runs
26
30-day runs

More Information About bloom-820m-chat huggingface.co Model

bloom-820m-chat huggingface.co

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

bloom-820m-chat huggingface.co Url

https://huggingface.co/WangZeJun/bloom-820m-chat

WangZeJun bloom-820m-chat online free

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

WangZeJun bloom-820m-chat online free url in huggingface.co:

https://huggingface.co/WangZeJun/bloom-820m-chat

bloom-820m-chat install

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

bloom-820m-chat install url in huggingface.co:

https://huggingface.co/WangZeJun/bloom-820m-chat

Url of bloom-820m-chat

bloom-820m-chat huggingface.co Url

Provider of bloom-820m-chat huggingface.co

WangZeJun
ORGANIZATIONS

Other API from WangZeJun

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 03 2024