Downloads · 30 days
10
17% of all-time downloads
iblai/ibl-multiple-choice-7B
ibl-multiple-choice-7B is a text generation model from iblai. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
ibleducation/ibl-multiple-choice-7B is a model finetuned on top of mistralai/Mistral-7B-Instruct-v0.1
Downloads · 30 days
10
17% of all-time downloads
All-time downloads
58
Public
Parameters
7.2B
14.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
ibleducation/ibl-multiple-choice-7B is a model finetuned on top of mistralai/Mistral-7B-Instruct-v0.1
The model is finetuned to generate a multiple choice questions. The output of the model is a json object with the following entries
aid (answer id) and atext (answer text.) {
"category": "Photosynthesis",
"qtext": "The chlorophyll fluorescence measurement technique is based on the emission of fluorescence by the chlorophylls present in the photosynthetic pigmentation:",
"ra": 4,
"answers": [
{"aid": 1, "atext": "It is used to determine the light absorption characteristics of the pigments."},
{"aid": 2, "atext": "It is used to determine the light emission characteristics of the pigments."},
{"aid": 3, "atext": "It is used to determine the kinetics of light absorption by the pigments."},
{"aid": 4, "atext": "It is used to determine the kinetics of light emission by the pigments."},
{"aid": 5, "atext": "It is used to determine the energy that the pigments emit when they absorb light."}
]
}
Requires: transformers > 4.35.0
pip install transformers
pip install accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer
import transformers
import torch
model_id = "ibleducation/ibl-multiple-choice-7B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
)
prompt = "<s>[INST] Algebra [/INST] "
response = pipeline(prompt)
print(response['generated_text'])
Important - Use the prompt template below:
<s>[INST] {prompt} [/INST]