laion / anh-bloomz-7b1-mt-cross-lingual

huggingface.co
Total runs: 11
24-hour runs: 0
7-day runs: 3
30-day runs: -5
Model's Last Updated: April 06 2023
text-generation

Introduction of anh-bloomz-7b1-mt-cross-lingual

Model Details of anh-bloomz-7b1-mt-cross-lingual

Model description

This model is bloomz-7b1-mt model finetuned on instruct dataset cross_lingual.jsonl from laion/Anh .

How to use

anh-bloomz-7b1-mt-cross-lingual model can be loaded and used via the following code:

import re
from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "laion/anh-bloomz-7b1-mt-cross-lingual"
model = AutoModelForCausalLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

whitespace_tokens_map = {'\n': '<n>', '  ': '<w>'}
text = "User: Apakah kita akan bisa menyembuhkan penyakit kanker? Jawab dalam bahasa China.\n"
for k, v in whitespace_tokens_map.items():
    text = text.replace(k, v)
inputs = tokenizer(text, return_tensors="pt")
tokens = model.generate(**inputs, max_new_tokens=200, do_sample=True, top_k=40, top_p=0.9, temperature=0.2, 
                        repetition_penalty=1.2,num_return_sequences=1)
output = tokenizer.decode(tokens[0], skip_special_tokens=True)
for v in whitespace_tokens_map.values():
    output = re.sub(rf"{v}\s+(\S+)", rf"{v}\1", output)
for k, v in whitespace_tokens_map.items():
    output = output.replace(v, k)

Runs of laion anh-bloomz-7b1-mt-cross-lingual on huggingface.co

11
Total runs
0
24-hour runs
0
3-day runs
3
7-day runs
-5
30-day runs

More Information About anh-bloomz-7b1-mt-cross-lingual huggingface.co Model

More anh-bloomz-7b1-mt-cross-lingual license Visit here:

https://choosealicense.com/licenses/bigscience-openrail-m

anh-bloomz-7b1-mt-cross-lingual huggingface.co

anh-bloomz-7b1-mt-cross-lingual huggingface.co is an AI model on huggingface.co that provides anh-bloomz-7b1-mt-cross-lingual's model effect (), which can be used instantly with this laion anh-bloomz-7b1-mt-cross-lingual model. huggingface.co supports a free trial of the anh-bloomz-7b1-mt-cross-lingual model, and also provides paid use of the anh-bloomz-7b1-mt-cross-lingual. Support call anh-bloomz-7b1-mt-cross-lingual model through api, including Node.js, Python, http.

anh-bloomz-7b1-mt-cross-lingual huggingface.co Url

https://huggingface.co/laion/anh-bloomz-7b1-mt-cross-lingual

laion anh-bloomz-7b1-mt-cross-lingual online free

anh-bloomz-7b1-mt-cross-lingual huggingface.co is an online trial and call api platform, which integrates anh-bloomz-7b1-mt-cross-lingual's modeling effects, including api services, and provides a free online trial of anh-bloomz-7b1-mt-cross-lingual, you can try anh-bloomz-7b1-mt-cross-lingual online for free by clicking the link below.

laion anh-bloomz-7b1-mt-cross-lingual online free url in huggingface.co:

https://huggingface.co/laion/anh-bloomz-7b1-mt-cross-lingual

anh-bloomz-7b1-mt-cross-lingual install

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

anh-bloomz-7b1-mt-cross-lingual install url in huggingface.co:

https://huggingface.co/laion/anh-bloomz-7b1-mt-cross-lingual

Url of anh-bloomz-7b1-mt-cross-lingual

anh-bloomz-7b1-mt-cross-lingual huggingface.co Url

Provider of anh-bloomz-7b1-mt-cross-lingual huggingface.co

laion
ORGANIZATIONS

Other API from laion

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: June 07 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: May 25 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: June 25 2022
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: November 16 2022