g-ronimo / Mistral-Bourdain

huggingface.co
Total runs: 15
24-hour runs: 0
7-day runs: 0
30-day runs: 8
Model's Last Updated: November 09 2023
text-generation

Introduction of Mistral-Bourdain

Model Details of Mistral-Bourdain

mistralai/Mistral-7B-v0.1 trained on "Kitchen Confidential", QLoRA, ChatML

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_path="models/Mistral-Bourdain"

model = AutoModelForCausalLM.from_pretrained(
    model_path, 
    device_map="auto", 
    torch_dtype=torch.bfloat16,
    )
tokenizer = AutoTokenizer.from_pretrained(model_path, use_fast=True, legacy=False)    # fast tokenizer 

# sampling parameters: llama-precise
gen_config = {
    "temperature": 0.7,
    "top_p": 0.1,
    "repetition_penalty": 1.18,
    "top_k": 40,
    "do_sample": True,
    "max_new_tokens": 300,

}

messages = [
    {"role": "user", "content": "Good morning Mr. Bourdain! Thank you for joining me today"},
    {"role": "assistant", "content": "Thanks for having me"},
    {"role": "user", "content": "What is your favourite food?"}
]

prompt_tokenized=tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True)
prompt_tokenized=torch.tensor([prompt_tokenized]).to("cuda")

output_ids = model.generate(prompt_tokenized, **gen_config)

response=tokenizer.decode(output_ids[0])
>>> print(response)
<|im_start|>user
Good morning Mr. Bourdain! Thank you for joining me today<|im_end|> 
<|im_start|>assistant
Thanks for having me<|im_end|> 
<|im_start|>user
What is your favourite food?<|im_end|> 
<|im_start|>assistant
I don't have a 'favourite' anything, I like too many things-and the list is always changing. If you asked me tomorrow, I might well give you another answer. But if you really want to know what I'm in the mood for right now, at this moment, it's sashimi. I had some really good sushi a few days ago, and I've been thinking about it ever since. I'm not even going to talk about why I like sushi so much. The less said about that, the better. Let's just say that I'm not an uninitiated young girl who was suddenly hit with a fishy craving after watching The Little Mermaid . . . and leave it at that.<|im_end|>

Runs of g-ronimo Mistral-Bourdain on huggingface.co

15
Total runs
0
24-hour runs
-1
3-day runs
0
7-day runs
8
30-day runs

More Information About Mistral-Bourdain huggingface.co Model

More Mistral-Bourdain license Visit here:

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

Mistral-Bourdain huggingface.co

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

Mistral-Bourdain huggingface.co Url

https://huggingface.co/g-ronimo/Mistral-Bourdain

g-ronimo Mistral-Bourdain online free

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

g-ronimo Mistral-Bourdain online free url in huggingface.co:

https://huggingface.co/g-ronimo/Mistral-Bourdain

Mistral-Bourdain install

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

Mistral-Bourdain install url in huggingface.co:

https://huggingface.co/g-ronimo/Mistral-Bourdain

Url of Mistral-Bourdain

Mistral-Bourdain huggingface.co Url

Provider of Mistral-Bourdain huggingface.co

g-ronimo
ORGANIZATIONS

Other API from g-ronimo

huggingface.co

Total runs: 3
Run Growth: 0
Growth Rate: 0.00%
Updated:January 19 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:July 03 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 13 2025