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="LeeChanRX/LeeChanRX-3B-Instruct")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("LeeChanRX/LeeChanRX-3B-Instruct")
model = AutoModelForCausalLM.from_pretrained("LeeChanRX/LeeChanRX-3B-Instruct")
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

🧠 LeeChan-3B-Instruct

LeeChan-3B-Instruct is a conversational AI assistant model created and fine-tuned by LeeChanRX.

Built on top of Qwen2.5-3B-Instruct, this model is designed to provide natural conversations, helpful responses, coding assistance, and instruction-following behavior with a friendly and stable personality.

The model has been customized to act as “LeeChan”, an intelligent and conversational AI assistant focused on clarity, reliability, and user-friendly interaction.


✨ Features

  • Conversational AI assistant
  • Instruction-following optimized
  • Coding and programming support
  • Friendly and natural responses
  • Stable chat behavior
  • Fine-tuned personality alignment
  • Lightweight 3B parameter architecture
  • Transformers compatible
  • Standalone merged model

🏗️ Base Model

This model is fine-tuned from:

Qwen/Qwen2.5-3B-Instruct

Credits and appreciation go to the original Qwen team for providing the open-source foundation model.


🚀 Usage

Transformers

from transformers import AutoTokenizer, AutoModelForCausalLM

model_name = "LeeChanRX/LeeChan-3B-Instruct"

tokenizer = AutoTokenizer.from_pretrained(model_name)

model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto"
)

messages = [
    {
        "role": "system",
        "content": "You are LeeChan, a helpful AI assistant."
    },
    {
        "role": "user",
        "content": "Hello"
    }
]

text = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True
)

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

outputs = model.generate(
    **inputs,
    max_new_tokens=128,
    temperature=0.7,
    repetition_penalty=1.1
)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month
411
Safetensors
Model size
3B params
Tensor type
BF16
·
Inference Providers NEW
Input a message to start chatting with LeeChanRX/LeeChanRX-3B-Instruct.

Model tree for LeeChanRX/LeeChanRX-3B-Instruct

Adapters
1 model
Quantizations
2 models