Locutusque / ChatHercules-2.5-Mistral-7B-DPO

huggingface.co
Total runs: 59
24-hour runs: 0
7-day runs: 2
30-day runs: -7
Model's Last Updated: March 10 2024
text-generation

Introduction of ChatHercules-2.5-Mistral-7B-DPO

Model Details of ChatHercules-2.5-Mistral-7B-DPO

ChatHercules-2.5-Mistral-7B-DPO

image/png

ChatHercules-2.5-Mistral-7B is a merge of the following models using LazyMergekit :

I then use DPO to fine-tune the product of the merge on 20% of argilla/distilabel-intel-orca-dpo-pairs

🧩 Configuration
slices:
  - sources:
      - model: Locutusque/Hercules-2.5-Mistral-7B
        layer_range: [0, 32]
      - model: openchat/openchat-3.5-0106
        layer_range: [0, 32]
merge_method: slerp
base_model: Locutusque/Hercules-2.5-Mistral-7B
parameters:
  t:
    - filter: self_attn
      value: [0, 0.5, 0.3, 0.7, 1]
    - filter: mlp
      value: [1, 0.5, 0.7, 0.3, 0]
    - value: 0.5
dtype: bfloat16
💻 Usage
!pip install -qU transformers accelerate

from transformers import AutoTokenizer
import transformers
import torch

model = "hydra-project/ChatHercules-2.5-Mistral-7B"
messages = [{"role": "user", "content": "What is a large language model?"}]

tokenizer = AutoTokenizer.from_pretrained(model)
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
pipeline = transformers.pipeline(
    "text-generation",
    model=model,
    torch_dtype=torch.float16,
    device_map="auto",
)

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"])
Evaluation results

image/png

image/png

Runs of Locutusque ChatHercules-2.5-Mistral-7B-DPO on huggingface.co

59
Total runs
0
24-hour runs
1
3-day runs
2
7-day runs
-7
30-day runs

More Information About ChatHercules-2.5-Mistral-7B-DPO huggingface.co Model

More ChatHercules-2.5-Mistral-7B-DPO license Visit here:

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

ChatHercules-2.5-Mistral-7B-DPO huggingface.co

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

ChatHercules-2.5-Mistral-7B-DPO huggingface.co Url

https://huggingface.co/Locutusque/ChatHercules-2.5-Mistral-7B-DPO

Locutusque ChatHercules-2.5-Mistral-7B-DPO online free

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

Locutusque ChatHercules-2.5-Mistral-7B-DPO online free url in huggingface.co:

https://huggingface.co/Locutusque/ChatHercules-2.5-Mistral-7B-DPO

ChatHercules-2.5-Mistral-7B-DPO install

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

ChatHercules-2.5-Mistral-7B-DPO install url in huggingface.co:

https://huggingface.co/Locutusque/ChatHercules-2.5-Mistral-7B-DPO

Url of ChatHercules-2.5-Mistral-7B-DPO

ChatHercules-2.5-Mistral-7B-DPO huggingface.co Url

Provider of ChatHercules-2.5-Mistral-7B-DPO huggingface.co

Locutusque
ORGANIZATIONS

Other API from Locutusque