Model Card for small-talk-1.3

Model Details

This model was trained on HumanLLMs/Human-Like-DPO-Dataset

Model Description

small talk 1.3 was designed to provide human-like responses to queries. Instead of replying to personal questions with responses like "I am just a freindly assistant..." or " As an AI model, I can't...," the model will engage in the dialogue and provide meaningful responses - similar to that of a human.

  • Developed by: Luke Griggs
  • License: MIT
  • Finetuned from model: meta-llama/Llama-3.2-1B-Instruct

How to Get Started with the Model

Install dependencies

!pip -q install transformers accelerate safetensors bitsAndBytes

Load the model and tokenizer

from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
import torch

repo = "Luke-griggs/small-talk-1.3"

bnb_config = BitsAndBytesConfig(
    load_in_4bit=True,
    bnb_4bit_use_double_quant=True,
    bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16,  # or float16 if needed
)

tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(
    repo,
    torch_dtype=torch.float16,
    device_map="auto"
    )
model.eval()

Generate a response

chat = [
    {"role": "system", 
     "content": """
You are a helpful, polite, and friendly assistant. Answer questions to the best of your ability.
If you don't know something, be honest and say so. Keep responses clear and concise."},

"""},
     {"role": "user", "content": "What's your favorite thing to do?"}
]

prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output = model.generate(
        **inputs,
        max_new_tokens=128,
        do_sample=True,
        temperature=0.7,
        top_p=0.9
    )


full_text = tokenizer.decode(output[0], skip_special_tokens=True)
prompt_text = tokenizer.decode(inputs['input_ids'][0], skip_special_tokens=True)

print(full_text[len(prompt_text):])

Training Details

Training Data

https://huggingface.co/datasets/HumanLLMs/Human-Like-DPO-Dataset

Training Procedure

This model was trained using DPO.

Compute Infrastructure

One RTX-4090

Model Card Authors

Luke-griggs

Downloads last month
13
Safetensors
Model size
1B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Luke-griggs/small-talk-1.3

Quantizations
1 model