transformers safetensors mistral text-generation merge conversational en license:apache-2.0 autotrain_compatible endpoints_compatible text-generation-inference region:us
---
library_name: transformers
license: apache-2.0
tags:
- merge
widget:
- text: |
    <|prompt|>dame un ejemplo del lenguaje de programacion Python</s><|answer|> 
language:
- en
---

# Model Card for Model (OpenHermes_fourier_merge_v1)

 
![image/png](https://cdn-uploads.huggingface.co/production/uploads/641b435ba5f876fe30c5ae0a/aM9eYZc1GExmLAUPPl3GC.png)

```
models merge fourier :
    - model_1: "teknium/OpenHermes-2.5-Mistral-7B"
    - model_2: 'teknium/OpenHermes-2-Mistral-7B'
```

```Python

from transformers import AutoModelForCausalLM, AutoTokenizer,pipeline
import torch

model_id="NickyNicky/OpenHermes_fourier_merge_v1"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, 
                                             device_map="auto", 
                                             trust_remote_code=True,
                                            #  load_in_4bit=True,
                                             ).eval() #

pipe = pipeline(
    "text-generation",
    model=model,
    tokenizer=tokenizer

)

txt= "dame un ejemplo del lenguaje de programacion Python"

messages = [
    {"role": "user", "content":txt},
]
prompt = pipe.tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
)
res = pipe(
    prompt,
    max_new_tokens=2056,
    do_sample=True,
    temperature=0.31, # 0.31 # 0.41
)
print(res[0]["generated_text"])
```