Run this model with HF Jobs
Run inetnuc/llama-3-8b-chat-nuclear-lora 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 to fine-tune https://huggingface.co/inetnuc/llama-3-8b-chat-nuclear-lora. 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-lora 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.
Instructions to use inetnuc/llama-3-8b-chat-nuclear-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inetnuc/llama-3-8b-chat-nuclear-lora with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inetnuc/llama-3-8b-chat-nuclear-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use inetnuc/llama-3-8b-chat-nuclear-lora with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0 # Run inference directly in the terminal: llama cli -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0 # Run inference directly in the terminal: llama cli -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
Use Docker
docker model run hf.co/inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use inetnuc/llama-3-8b-chat-nuclear-lora with Ollama:
ollama run hf.co/inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use inetnuc/llama-3-8b-chat-nuclear-lora with Docker Model Runner:
docker model run hf.co/inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
- Lemonade
How to use inetnuc/llama-3-8b-chat-nuclear-lora with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull inetnuc/llama-3-8b-chat-nuclear-lora:Q8_0
Run and chat with the model
lemonade run user.llama-3-8b-chat-nuclear-lora-Q8_0
List all available models
lemonade list
- Atomic Chat
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:
- Data Preparation: Loaded and preprocessed nuclear-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-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
- 14
8-bit
Model tree for inetnuc/llama-3-8b-chat-nuclear-lora
Base model
meta-llama/Meta-Llama-3-8B