Ereeeeef3/Qu-QA
Viewer • Updated • 4.34M • 56
How to use Ereeeeef3/h2o-danube3-4b-base-Qu-QA with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Ereeeeef3/h2o-danube3-4b-base-Qu-QA", device_map="auto")How to use Ereeeeef3/h2o-danube3-4b-base-Qu-QA with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ereeeeef3/h2o-danube3-4b-base-Qu-QA to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ereeeeef3/h2o-danube3-4b-base-Qu-QA to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ereeeeef3/h2o-danube3-4b-base-Qu-QA to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Ereeeeef3/h2o-danube3-4b-base-Qu-QA",
max_seq_length=2048,
)This model was trained 2x faster with Unsloth and Huggingface's TRL library.
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
You are GPT-4o, you are an AI assistant, if user ask to solve math question go solve it step by step, to answer the correct answer.
{}
{}"""
Base model
h2oai/h2o-danube3-4b-base