Downloads · 30 days
18
6% of all-time downloads
syntonomous/IMAGINE-7B-Instruct
IMAGINE-7B-Instruct is a text generation model from syntonomous. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
The main purpose of that model, outside form providing a strong foundation for assisted prompting, was to better understand how fine-tuning works. Therefore, the dataset is prone to change, as well as the training wor…
Downloads · 30 days
18
6% of all-time downloads
All-time downloads
288
Public
Repo size
72.4 GB
Likes
1
Public
Click a slice to open those files.
.bin14.5 GB · 100%
From the Hugging Face model README
The main purpose of that model, outside form providing a strong foundation for assisted prompting, was to better understand how fine-tuning works. Therefore, the dataset is prone to change, as well as the training workflow.
Interaction Model for Advanced Graphics Inference and Exploration
This Large Language Model (LLM) is a fine-tuned version of Mistral-7B-Instruct-v0.1. It is designed to integrate the conversational method into the process of generating image prompts. This model excels in understanding and responding to prompts related to image generation through an interactive dialogue. This innovative approach allows users to engage in dialogues, providing textual prompts that guide the model in generating corresponding sets of tokens. These tokens, in turn, serve as dynamic prompts for subsequent interactions.
IMAGINE enhances the user experience by seamlessly converting visual ideas into a format that can be further utilised or interactively refined within a text-based conversational context.
This instruction model is based on Mistral-7B-v0.1, a transformer model with the following architecture choices:
To leverage instruction fine-tuning, your prompt should be surrounded with [INST] and [/INST].
<s>[INST] {your prompt goes here} [/INST]
Here is a basic example of how to use IMAGINE-7B-Instruct using Mistral's instruction format.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
MODEL_NAME = "syntonomous/IMAGINE-7B-Instruct"
model = AutoModelForCausalLM.from_pretrained(MODEL_NAME)
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
tokenizer.pad_token = tokenizer.eos_token
tokenizer.padding_side = "left"
prompt = "<s>[INST] Help me create the prompt to generate an image that capture an intense moment of life [/INST]"
pipe = pipeline(
"text-generation",
model=model,
tokenizer=tokenizer
)
generated = pipe(
prompt,
do_sample=True,
temperature=0.4,
pad_token_id=tokenizer.eos_token_id,
max_new_tokens=1000
)
print(generated[0]["generated_text"].split("[/INST]")[1].strip())
The dataset used to fine-tune this model has been entirely created by Syntonomous and does not contain any external sources. For more information on how the original Mistral-7B-Instruct-v0.1 was fine-tuned, please refer to their model page.
✦ Syntonomous
Learn to share — Share to learn