Downloads · 30 days
0
YouKnwMe/Mistral-7B-Instruct-exp-e2
Mistral-7B-Instruct-exp-e2 is a machine learning model from YouKnwMe. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-nc-4.0.
Description TBD, thanks for checking in!
Downloads · 30 days
0
Access
Public
Updated Jan 26, 2024
Repo size
83.9 MB
Likes
0
Public
Click a slice to open those files.
.safetensors83.9 MB · 100%
From the Hugging Face model README
Description TBD, thanks for checking in!
Use the following Python code to load the model:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(repo_id)
To generate text, use the following Python code:
text = "Hi, my name is "
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=64)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))