The Faro chat model focuses on practicality and long-context modeling. It handles various downstream tasks with higher quality, delivering stable and reliable results even when inputs contain lengthy documents or complex instructions. Faro seamlessly works in both English and Chinese.
Faro-Yi-9B
Faro-Yi-9B is an improved
Yi-9B-200K
with extensive instruction tuning on
Fusang-V1
. Compared to Yi-9B-200K, Faro-Yi-9B has gained greater capability in various downstream tasks and long-context modeling thanks to the large-scale synthetic data in Fusang-V1.
How to Use
Faro-Yi-9B uses chatml template. This make it easy to set up system prompt and multi-turn conversations.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
model_path,
device_map="cuda"
)
tokenizer = AutoTokenizer.from_pretrained(model_path)
messages = [
{"role": "system", "content": "You are a helpful assistant. Always answer with a short response."},
{"role": "user", "content": "Tell me what is Pythagorean theorem like you are a pirate."}
]
input_ids = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt",
).to(model.device)
generated_ids = model.generate(input_ids, max_new_tokens=512, temperature=0.5)
response = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
# Aye, matey! The Pythagorean theorem is a nautical rule that helps us find the length of the third side of a triangle. It's like this: if you have a triangle with two sides, you can find the length of the third side by squaring the two sides and then adding them together. The square root of that sum will give you the length of the third side! It's useful for sailing and navigating, so you always know how far you've traveled. Remember, it's all about the sum of squares, me hearties!
Performance
Faro-Yi-9B enhances its ability compared to Yi-9B-200K in most dimensions, especially in long-range modeling and bilingual (English, Chinese) understanding. Faro is competitive among all open-sourced models at around 9B parameters.
Faro-Yi-9B-200K-bpw4.6 huggingface.co is an AI model on huggingface.co that provides Faro-Yi-9B-200K-bpw4.6's model effect (), which can be used instantly with this blockblockblock Faro-Yi-9B-200K-bpw4.6 model. huggingface.co supports a free trial of the Faro-Yi-9B-200K-bpw4.6 model, and also provides paid use of the Faro-Yi-9B-200K-bpw4.6. Support call Faro-Yi-9B-200K-bpw4.6 model through api, including Node.js, Python, http.
Faro-Yi-9B-200K-bpw4.6 huggingface.co is an online trial and call api platform, which integrates Faro-Yi-9B-200K-bpw4.6's modeling effects, including api services, and provides a free online trial of Faro-Yi-9B-200K-bpw4.6, you can try Faro-Yi-9B-200K-bpw4.6 online for free by clicking the link below.
blockblockblock Faro-Yi-9B-200K-bpw4.6 online free url in huggingface.co:
Faro-Yi-9B-200K-bpw4.6 is an open source model from GitHub that offers a free installation service, and any user can find Faro-Yi-9B-200K-bpw4.6 on GitHub to install. At the same time, huggingface.co provides the effect of Faro-Yi-9B-200K-bpw4.6 install, users can directly use Faro-Yi-9B-200K-bpw4.6 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Faro-Yi-9B-200K-bpw4.6 install url in huggingface.co: