Downloads · 30 days
94
0% of all-time downloads
Trendyol/Trendyol-LLM-7b-base-v1.0
Trendyol-LLM-7b-base-v1.0 is a text generation model from Trendyol. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<img src="https://huggingface.co/Trendyol/Trendyol-LLM-7b-base-v1.0/resolve/main/trendyol-llm-mistral.jpg" alt="drawing" width="400"/ Trendyol LLM v1.0 is a generative model that is based on Mistral 7B model. This is…
Downloads · 30 days
94
0% of all-time downloads
All-time downloads
44.5K
Public
Parameters
7.3B
14.7 GB on disk
Likes
16
Public
Click a slice to open those files.
.safetensors14.7 GB · 100%
From the Hugging Face model README
<img src="https://huggingface.co/Trendyol/Trendyol-LLM-7b-base-v1.0/resolve/main/trendyol-llm-mistral.jpg" alt="drawing" width="400"/>
Trendyol LLM v1.0 is a generative model that is based on Mistral 7B model. This is the repository for the base model.
Model Developers Trendyol
Variations base, chat, and dpo variations.
Input Models input text only.
Output Models generate text only.
Model Architecture Trendyol LLM v1.0 is an auto-regressive language model (based on Mistral 7b) that uses an optimized transformer architecture. The base version is fine-tuned on 10 billion tokens with the following trainables by using LoRA:
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
model_id = "Trendyol/Trendyol-LLM-7b-base-v1.0"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id,
device_map='auto',
load_in_8bit=True)
sampling_params = dict(do_sample=True, temperature=0.3, top_k=50, top_p=0.9)
pipe = pipeline("text-generation",
model=model,
tokenizer=tokenizer,
device_map="auto",
max_new_tokens=1024,
return_full_text=True,
repetition_penalty=1.1
)
def generate_output(user_query):
outputs = pipe(user_query,
**sampling_params
)
return outputs[0]["generated_text"]
user_query = "Ders çalışmanın en iyi 5 yolu:"
response = generate_output(user_query)