Instructions to use inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- Unsloth Studio new
How to use inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora", max_seq_length=2048, )
How to use from
Unsloth StudioInstall Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex
# Run unsloth studio
unsloth studio -H 0.0.0.0 -p 8888
# Then open http://localhost:8888 in your browser
# Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chattingLoad model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora",
max_seq_length=2048,
)Quick Links
LLAMA-3.1 8B Chat Turkish Model
- Developed by: inetnuc
- License: apache-2.0
- Finetuned from model: unsloth/Meta-Llama-3.1-8B-bnb-4bit
This LLAMA-3.1 model was finetuned to enhance capabilities in text generation for nuclear-related topics. The training was accelerated using Unsloth and Huggingface's TRL library, achieving a 2x faster performance.
Finetuning Process
The model was finetuned using the Unsloth library, leveraging its efficient training capabilities. The process included the following steps:
- Data Preparation: Loaded and preprocessed turkish-related data.
- Model Loading: Utilized
unsloth/llama-3-8b-bnb-4bitas the base model. - LoRA Patching: Applied LoRA (Low-Rank Adaptation) for efficient training.
- Training: Finetuned the model using Hugging Face's TRL library with optimized hyperparameters.
Model Details
- Base Model:
unsloth/llama-3.1-8b-bnb-4bit - Language: English (
en) - License: Apache-2.0
Author
MUSTAFA UMUT OZBEK
https://www.linkedin.com/in/mustafaumutozbek/ https://x.com/m_umut_ozbek
Usage
Loading the Model
You can load the model and tokenizer using the following code snippet:
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained("inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora")
model = AutoModelForCausalLM.from_pretrained("inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora")
# Example of generating text
inputs = tokenizer("Türki̇ye'de nükleer enerji̇ yatirimlari artirilmali mi, ne düşünüyorsun?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora
Base model
meta-llama/Llama-3.1-8B Quantized
unsloth/Meta-Llama-3.1-8B-bnb-4bit
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for inetnuc/TurkishLlama-3.1-8B-4bit-chat-nuclear-lora to start chatting