Run this model with HF Jobs

Run inetnuc/llama-3-8b-chat-nuclear on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/inetnuc/llama-3-8b-chat-nuclear. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/inetnuc/llama-3-8b-chat-nuclear on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/inetnuc/llama-3-8b-chat-nuclear. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/inetnuc/llama-3-8b-chat-nuclear. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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

Files and Versions

File Name Description
.gitattributes Initial commit
README.md Model description and usage
adapter_config.json Configuration for adapter
adapter_model.safetensors Finetuned model weights
config.json Configuration for base model
generation_config.json Generation configuration for model
model-00001-of-00007.safetensors Part of the base model weights
model-00002-of-00007.safetensors Part of the base model weights
model-00003-of-00007.safetensors Part of the base model weights
model-00004-of-00007.safetensors Part of the base model weights
model-00005-of-00007.safetensors Part of the base model weights
model-00006-of-00007.safetensors Part of the base model weights
model-00007-of-00007.safetensors Part of the base model weights
model.safetensors.index.json Index for the model weights
special_tokens_map.json Special tokens mapping
tokenizer.json Tokenizer data
tokenizer_config.json Configuration for tokenizer

Model Card Authors

MUSTAFA UMUT OZBEK

Contact

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

# 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
13
Safetensors
Model size
8B params
Tensor type
F32
ยท
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

Finetuned
(3,075)
this model