How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Hello-Bible/Gabriel-7b-Instruct-v0.2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Hello-Bible/Gabriel-7b-Instruct-v0.2")
model = AutoModelForCausalLM.from_pretrained("Hello-Bible/Gabriel-7b-Instruct-v0.2")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Gabriel-7B

Gabriel-7B(-Instruct-v0.1) is a fine tuned (SFT) model using a 36k French/English Christian dataset (self made).

Base model used for training: Mistral-7B-Instruct-v0.2

Evaluation

Downloads last month
33
Safetensors
Model size
7B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with Hello-Bible/Gabriel-7b-Instruct-v0.2.

Model tree for Hello-Bible/Gabriel-7b-Instruct-v0.2

Quantizations
2 models