Downloads · 30 days
7
3% of all-time downloads
OnurDemircioglu/OmniGPT-355M-Instruct
OmniGPT-355M-Instruct is a machine learning model from OnurDemircioglu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
OmniGPT-355M-Instruct, GPT-2 Medium (355M parametre) mimarisi üzerine inşa edilmiş ve Stanford Alpaca veri seti ile talimat odaklı (Instruction-Tuned) olarak ince ayar (Fine-Tuning) yapılmış yerel ve bağımsız bir dil…
Downloads · 30 days
7
3% of all-time downloads
All-time downloads
216
Public
Parameters
354M
22.7 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.8 GB · 100%
From the Hugging Face model README
OmniGPT-355M-Instruct, GPT-2 Medium (355M parametre) mimarisi üzerine inşa edilmiş ve Stanford Alpaca veri seti ile talimat odaklı (Instruction-Tuned) olarak ince ayar (Fine-Tuning) yapılmış yerel ve bağımsız bir dil modelidir.
Özellikle Self-Reflective RAG (Retrieval-Augmented Generation) mimarilerinde bir "Üretici (Builder/Generator)" ajan olarak çalışmak üzere optimize edilmiştir.
Bu model, tek başına devasa bilgiler ezberlemesi için değil; "Verilen bilgiyi sentezleme ve talimatlara uyma" amacıyla tasarlanmıştır.
Geliştirilen Otonom Yapay Zeka Mimarisi kapsamında OmniGPT; FAISS / MiniLM tabanlı bir vektör veritabanından bağlamı (context) alarak bilgi sentezler. Self-Reflective (Kendi Kendini Denetleyen) sistemlerde bir "Üretici (Builder)" ajan olarak yüksek performansla görev yapabilecek şekilde yapılandırılmıştır.
Modeli doğrudan Hugging Face transformers kütüphanesi ile çekebilirsiniz:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "OnurDemircioglu/OmniGPT-355M-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16,
attn_implementation="eager" # Windows CUDA cihazlar için önerilir
).to("cuda")
# Alpaca Prompt Formatı
prompt = """Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
Explain what artificial intelligence is in simple terms.
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt", truncation=True, max_length=150).to("cuda")
output_ids = model.generate(
inputs["input_ids"],
attention_mask=inputs["attention_mask"],
max_new_tokens=60,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.3,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(response)
CUDA device-side assert hatası alınabilir. Giriş metnini her zaman max_length=150 gibi sınırlarla (truncation_side="left") koruma altına alın.repetition_penalty=1.3 veya üzeri değerlerin kullanılması zorunludur.Bu model, statik bir yapıdan ziyade Self-Improving RAG (Kendi Hatasından Öğrenen Sistem) boru hattının ilk üreticisidir. İlerleyen aşamalarda: