How to use from the
Use from the
llama-cpp-python library
# !pip install llama-cpp-python

from llama_cpp import Llama

llm = Llama.from_pretrained(
	repo_id="inetnuc/llama-3-8b-chat-nuclear-lora",
	filename="unsloth.Q8_0.gguf",
)
output = llm(
	"Once upon a time,",
	max_tokens=512,
	echo=True
)
print(output)

LLAMA-3 8B Chat Nuclear Model

  • Developed by: inetnuc
  • License: apache-2.0
  • Finetuned from model: unsloth/llama-3-8b-bnb-4bit

This LLAMA-3 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:

  1. Data Preparation: Loaded and preprocessed nuclear-related data.
  2. Model Loading: Utilized unsloth/llama-3-8b-bnb-4bit as the base model.
  3. LoRA Patching: Applied LoRA (Low-Rank Adaptation) for efficient training.
  4. Training: Finetuned the model using Hugging Face's TRL library with optimized hyperparameters.

Model Details

  • Base Model: unsloth/llama-3-8b-bnb-4bit
  • Language: English (en)
  • License: Apache-2.0

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/llama-3-8b-chat-nuclear-lora")
model = AutoModelForCausalLM.from_pretrained("inetnuc/llama-3-8b-chat-nuclear-lora")

# Example of generating text
inputs = tokenizer("what is the iaea approach for cyber security?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Downloads last month
8
GGUF
Model size
8B params
Architecture
llama
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for inetnuc/llama-3-8b-chat-nuclear-lora

Quantized
(877)
this model