How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="neovalle/H4rmoniousAnthea")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("neovalle/H4rmoniousAnthea")
model = AutoModelForCausalLM.from_pretrained("neovalle/H4rmoniousAnthea", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Model Details

image/png

Model Description

This model is based on teknium/OpenHermes-2.5-Mistral-7B, DPO fine-tuned with the H4rmony_dpo dataset. Its completions should be more ecologically aware than the base model.

Developed by: Jorge Vallego
Funded by : Neovalle Ltd.
Shared by : airesearch@neovalle.co.uk
Model type: mistral
Language(s) (NLP): Primarily English
License: MIT
Finetuned from model: teknium/OpenHermes-2.5-Mistral-7B
Methodology: DPO

Uses

Intended as PoC to show the effects of H4rmony_dpo dataset with DPO fine-tuning.

Direct Use

For testing purposes to gain insight in order to help with the continous improvement of the H4rmony_dpo dataset.

Downstream Use

Its direct use in applications is not recommended as this model is under testing for a specific task only (Ecological Alignment) Out-of-Scope Use

Not meant to be used other than testing and evaluation of the H4rmony_dpo dataset and ecological alignment. Bias, Risks, and Limitations

This model might produce biased completions already existing in the base model, and others unintentionally introduced during fine-tuning.

How to Get Started with the Model

It can be loaded and run in a Colab instance with High RAM.

Training Details

Trained using DPO

Training Data

H4rmony Dataset - https://huggingface.co/datasets/neovalle/H4rmony_dpo

Downloads last month
53
Safetensors
Model size
7B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for neovalle/H4rmoniousAnthea

Quantizations
1 model

Dataset used to train neovalle/H4rmoniousAnthea