Downloads · 30 days
42
8% of all-time downloads
cenkersisman/TurkishWikipedia-LLM-7b-base
TurkishWikipedia-LLM-7b-base is a text generation model from cenkersisman. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
42
8% of all-time downloads
All-time downloads
510
Public
Parameters
7.2B
81.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
Library name: peft
Base model: mistralai/Mistral-7B-v0.1
Model Description:
This model was fine-tuned on Turkish Wikipedia texts using the peft library with Lora configuration. The training is at %40 of the first epoch with loss value of 1.30
Developed by: [More Information Needed]
Funded by: [Optional]: [More Information Needed]
Shared by: [Optional]: [More Information Needed]
Model type: Fine-tuned language model
Language(s) (NLP): Turkish
License: [More Information Needed]
Finetuned from model: mistralai/Mistral-7B-v0.1
Model Sources:
Direct Use
This model can be used for various NLP tasks, including:
Downstream Use
[More Information Needed]
The following code snippet demonstrates how to load the fine-tuned model and generate text:
Python
from transformers import AutoModelForCausalLM, LlamaTokenizer, pipeline
# Load the model and tokenizer
folder = "cenkersisman/TurkishWikipedia-LLM-7b-base"
device = "cuda"
model = AutoModelForCausalLM.from_pretrained(folder).to(device)
tokenizer = LlamaTokenizer.from_pretrained(folder)
# Create a pipeline for text generation
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer, device_map=device, max_new_tokens=128, return_full_text=True, repetition_penalty=1.1)
# Generate text
def generate_output(user_query):
outputs = pipe(user_query, do_sample=True, temperature=0.1, top_k=10, top_p=0.9)
return outputs[0]["generated_text"]
# Example usage
user_query = "brezilya'nın nüfus olarak dünyanın en büyük"
output = generate_output(user_query)
print(output)
This code will load the fine-tuned model from the "cenkersisman/TurkishWikipedia-LLM-7b-base", create a pipeline for text generation, and then generate text based on the provided user query.
Training Data
Training Procedure
Preprocessing: The data was preprocessed by tokenizing the text and adding special tokens.
Training Hyperparameters
Evaluation
Testing Data, Factors & Metrics: [More Information Needed]
Results: [More Information Needed]
The environmental impact of training this model can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
Hardware Type: [More Information Needed]
Hours used: [More Information Needed]
Cloud Provider: [More Information Needed]
Compute Region: [More Information Needed]
Carbon Emitted: [More Information Needed]