abhishekchohan / Yi-9B-Forest-DPO

huggingface.co
Total runs: 75
24-hour runs: -2
7-day runs: -2
30-day runs: -9
Model's Last Updated: March 17 2024
text-generation

Introduction of Yi-9B-Forest-DPO

Model Details of Yi-9B-Forest-DPO

Yi-9B-Forest-DPO

Introducing Yi-9B-Forest-DPO, a LLM fine-tuned with base model 01-ai/Yi-9B, using direct preference optimization. This model showcases exceptional prowess across a spectrum of natural language processing (NLP) tasks.

A mixture of the following datasets was used for fine-tuning.

  1. Intel/orca_dpo_pairs
  2. nvidia/HelpSteer
  3. jondurbin/truthy-dpo-v0.1

💻 Usage

!pip install -qU transformers bitsandbytes accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "abhishekchohan/Yi-9B-Forest-DPO"

tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
)

messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
print(outputs[0]["generated_text"])

Runs of abhishekchohan Yi-9B-Forest-DPO on huggingface.co

75
Total runs
-2
24-hour runs
-2
3-day runs
-2
7-day runs
-9
30-day runs

More Information About Yi-9B-Forest-DPO huggingface.co Model

More Yi-9B-Forest-DPO license Visit here:

https://choosealicense.com/licenses/apache-2.0

Yi-9B-Forest-DPO huggingface.co

Yi-9B-Forest-DPO huggingface.co is an AI model on huggingface.co that provides Yi-9B-Forest-DPO's model effect (), which can be used instantly with this abhishekchohan Yi-9B-Forest-DPO model. huggingface.co supports a free trial of the Yi-9B-Forest-DPO model, and also provides paid use of the Yi-9B-Forest-DPO. Support call Yi-9B-Forest-DPO model through api, including Node.js, Python, http.

abhishekchohan Yi-9B-Forest-DPO online free

Yi-9B-Forest-DPO huggingface.co is an online trial and call api platform, which integrates Yi-9B-Forest-DPO's modeling effects, including api services, and provides a free online trial of Yi-9B-Forest-DPO, you can try Yi-9B-Forest-DPO online for free by clicking the link below.

abhishekchohan Yi-9B-Forest-DPO online free url in huggingface.co:

https://huggingface.co/abhishekchohan/Yi-9B-Forest-DPO

Yi-9B-Forest-DPO install

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

Yi-9B-Forest-DPO install url in huggingface.co:

https://huggingface.co/abhishekchohan/Yi-9B-Forest-DPO

Url of Yi-9B-Forest-DPO

Provider of Yi-9B-Forest-DPO huggingface.co

abhishekchohan
ORGANIZATIONS

Other API from abhishekchohan