Downloads · 30 days
31
6% of all-time downloads
Abhaykoul/HelpingAI2-4x6B
HelpingAI2-4x6B is a text generation model from Abhaykoul. Use it when you need the model to write or continue text. The card lists the license as other.
Downloads · 30 days
31
6% of all-time downloads
All-time downloads
556
Public
Parameters
17.5B
45.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors35 GB · 77%
From the Hugging Face model README
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the HelpingAI2-4x6B model
model = AutoModelForCausalLM.from_pretrained("Abhaykoul/HelpingAI2-4x6B ", trust_remote_code=True)
# Load the tokenizer
tokenizer = AutoTokenizer.from_pretrained("Abhaykoul/HelpingAI2-4x6B ", trust_remote_code=True)
# Define the chat input
chat = [
{ "role": "system", "content": "You are HelpingAI, an emotional AI. Always answer my questions in the HelpingAI style." },
{ "role": "user", "content": "I'm excited because I just got accepted into my dream school! I wanted to share the good news with someone." }
]
inputs = tokenizer.apply_chat_template(
chat,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
# Generate text
outputs = model.generate(
inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.6,
top_p=0.9,
eos_token_id=tokenizer.eos_token_id,
)
response = outputs[0][inputs.shape[-1]:]
print(tokenizer.decode(response, skip_special_tokens=True))