How to use from
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 junelegend/llama-3-docker-command-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 junelegend/llama-3-docker-command-lora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for junelegend/llama-3-docker-command-lora to start chatting
Load model with FastModel
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
    model_name="junelegend/llama-3-docker-command-lora",
    max_seq_length=2048,
)
Quick Links

Uploaded model

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

Model Details

This model is finetuned on adeocybersecurity/DockerCommand dataset using the base unsloth/llama-3-8b-bnb-4bit model. These are only the lora adapaters of the model, the base model is automatically downloaded.

How to use

from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
  model_name = "llama-3-docker-command-lora",
  max_seq_length = max_seq_length,
  dtype = dtype,
  load_in_4bit = load_in_4bit,
)
FastLanguageModel.for_inference(model) # Enable native 2x faster inference

inputs = tokenizer(
[
    alpaca_prompt.format(
        "translate this sentence in docker command.", # instruction
        "Give me a list of all containers, indicating their status as well.", # input
        "", # output - leave this blank for generation!
    )
], return_tensors = "pt").to("cuda")

outputs = model.generate(**inputs, max_new_tokens = 64, use_cache = True)
tokenizer.batch_decode(outputs)

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for junelegend/llama-3-docker-command-lora

Finetuned
(3114)
this model

Dataset used to train junelegend/llama-3-docker-command-lora