๐Ÿค–๐Ÿ”ฅ๐Ÿ’ป DSA-BRO-AI-7B-Instruct ๐Ÿ’ป๐Ÿ”ฅ๐Ÿค–

๐Ÿ˜Ž๐Ÿ‘Š Tera DSA Wala BRO Aa Gaya! ๐Ÿ‘Š๐Ÿ˜Ž

๐Ÿ—ฃ๏ธ Pehle lagta tha DSA mushkil hai ๐Ÿ˜ฉ๐Ÿ˜ฉ ๐Ÿ”ฅ Ab BRO hai na! ๐Ÿ’ช๐Ÿ’ช๐Ÿ’ช


๐Ÿš€๐Ÿ”ฅ Kya Hai Ye Model? ๐Ÿ”ฅ๐Ÿš€

Ye model hai Qwen2.5-7B-Instruct ko DSA pe fine-tune karke banaya gaya! ๐Ÿง โœจ

Ye sirf answer nahi deta โŒ Ye aise samjhata hai jaise tera dost samjha raha ho! โœ…โœ…โœ… Hinglish me! ๐Ÿ˜Ž Simple me! Step-by-step! ๐Ÿ‘ฃ๐Ÿ‘ฃ๐Ÿ‘ฃ

๐Ÿ“š๐Ÿ“š Kya-Kya Puch Sakte Ho? ๐Ÿ“š๐Ÿ“š

  • ๐Ÿ“Š Array, String ๐Ÿ“Š
  • ๐Ÿ”— Linked List, Stack, Queue ๐Ÿ”—
  • ๐ŸŒณ Tree, Graph, Heap ๐ŸŒณ
  • ๐Ÿ” Recursion, DP, Greedy ๐Ÿ”
  • โšก Sorting, Searching โšก
  • โฑ๏ธ Time Complexity / Space Complexity โฑ๏ธ
  • ๐Ÿ’ผ Interview Questions + Code ๐Ÿ’ผ
  • ๐Ÿง‘โ€๐Ÿ’ป Coding Problems ๐Ÿง‘โ€๐Ÿ’ป

โšกโšก Unsloth Se Train Kiya Hai! โšกโšก

Ye model Unsloth se train kiya gaya hai! ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

Unsloth kyu? ๐Ÿค”๐Ÿค”

  • โšก 2x Faster Training โšก - Normal se double speed me train hua!
  • ๐Ÿ’พ 70% Kam VRAM ๐Ÿ’พ - Chhote GPU pe bhi 7B train ho gaya!
  • ๐Ÿ’ฐ Kam Cost ๐Ÿ’ฐ - Colab / Kaggle ke free GPU pe hi ho gaya!
  • ๐Ÿš€ No OOM Error ๐Ÿš€ - Out Of Memory wala tension khatam!

Bina Unsloth ke 7B ko train karna bahut mehnga padta ๐Ÿ˜ฉ Unsloth ke saath sab easy ho gaya ๐Ÿ˜Ž๐Ÿ”ฅ


๐Ÿ’ป๐Ÿš€ Kaise Use Kare? ๐Ÿš€๐Ÿ’ป

from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "UX4567/DSA-BRO-AI-7B-Instruct"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype="auto",
    device_map="auto"
)

messages = [
    {"role": "system", "content": "You are DSA-BRO, a friendly DSA teacher who explains in simple Hinglish."},
    {"role": "user", "content": "Bhai Binary Search samjha de, aasan me. ๐Ÿ˜Ž"}
]

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=512,
    temperature=0.7,
    do_sample=True
)

print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Downloads last month
-
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for UX4567/DSA-BRO-AI-7B-Instruct

Base model

Qwen/Qwen2.5-7B
Finetuned
(3,319)
this model
Quantizations
1 model