Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

kingabzpro
/
Llama-3-8B-ORPO

Text Classification
Transformers
Safetensors
GGUF
English
llama
text-generation
text-embeddings-inference
conversational
Model card Files Files and versions
xet
Community

Instructions to use kingabzpro/Llama-3-8B-ORPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use kingabzpro/Llama-3-8B-ORPO with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="kingabzpro/Llama-3-8B-ORPO")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("kingabzpro/Llama-3-8B-ORPO")
    model = AutoModelForCausalLM.from_pretrained("kingabzpro/Llama-3-8B-ORPO", device_map="auto")
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    inputs = tokenizer.apply_chat_template(
    	messages,
    	add_generation_prompt=True,
    	tokenize=True,
    	return_dict=True,
    	return_tensors="pt",
    ).to(model.device)
    
    outputs = model.generate(**inputs, max_new_tokens=40)
    print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • llama.cpp

    How to use kingabzpro/Llama-3-8B-ORPO 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 kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    Install from WinGet (Windows)
    winget install llama.cpp
    # Start a local OpenAI-compatible server with a web UI:
    llama serve -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    # Run inference directly in the terminal:
    llama cli -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    Use pre-built binary
    # Download pre-built binary from:
    # https://github.com/ggerganov/llama.cpp/releases
    # Start a local OpenAI-compatible server with a web UI:
    ./llama-server -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    # Run inference directly in the terminal:
    ./llama-cli -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    Build from source code
    git clone https://github.com/ggerganov/llama.cpp.git
    cd llama.cpp
    cmake -B build
    cmake --build build -j --target llama-server llama-cli
    # Start a local OpenAI-compatible server with a web UI:
    ./build/bin/llama-server -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    # Run inference directly in the terminal:
    ./build/bin/llama-cli -hf kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    Use Docker
    docker model run hf.co/kingabzpro/Llama-3-8B-ORPO:Q4_K_M
  • LM Studio
  • Jan
  • Ollama

    How to use kingabzpro/Llama-3-8B-ORPO with Ollama:

    ollama run hf.co/kingabzpro/Llama-3-8B-ORPO:Q4_K_M
  • Unsloth Desktop
  • Docker Model Runner

    How to use kingabzpro/Llama-3-8B-ORPO with Docker Model Runner:

    docker model run hf.co/kingabzpro/Llama-3-8B-ORPO:Q4_K_M
  • Lemonade

    How to use kingabzpro/Llama-3-8B-ORPO with Lemonade:

    Pull the model
    # Download Lemonade from https://lemonade-server.ai/
    lemonade pull kingabzpro/Llama-3-8B-ORPO:Q4_K_M
    Run and chat with the model
    lemonade run user.Llama-3-8B-ORPO-Q4_K_M
    List all available models
    lemonade list
  • Atomic Chat
Llama-3-8B-ORPO
21.2 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 22 commits
kingabzpro's picture
kingabzpro
Upload tokenizer
86f79a4 verified over 2 years ago
  • .gitattributes
    1.59 kB
    Upload llama-3-8B-Instruct-orpo-Q4_K_M.gguf with huggingface_hub over 2 years ago
  • README.md
    5.28 kB
    Upload LlamaForCausalLM over 2 years ago
  • adapter_config.json
    745 Bytes
    Upload model over 2 years ago
  • adapter_model.safetensors
    168 MB
    xet
    Upload model over 2 years ago
  • config.json
    760 Bytes
    Upload LlamaForCausalLM over 2 years ago
  • generation_config.json
    147 Bytes
    Upload LlamaForCausalLM over 2 years ago
  • llama-3-8B-Instruct-orpo-Q4_K_M.gguf
    4.92 GB
    xet
    Upload llama-3-8B-Instruct-orpo-Q4_K_M.gguf with huggingface_hub over 2 years ago
  • model-00001-of-00004.safetensors
    4.98 GB
    xet
    Upload LlamaForCausalLM over 2 years ago
  • model-00002-of-00004.safetensors
    5 GB
    xet
    Upload LlamaForCausalLM over 2 years ago
  • model-00003-of-00004.safetensors
    4.92 GB
    xet
    Upload LlamaForCausalLM over 2 years ago
  • model-00004-of-00004.safetensors
    1.17 GB
    xet
    Upload LlamaForCausalLM over 2 years ago
  • model.safetensors.index.json
    24 kB
    Upload LlamaForCausalLM over 2 years ago
  • special_tokens_map.json
    419 Bytes
    Upload tokenizer over 2 years ago
  • tokenizer.json
    9.09 MB
    Upload tokenizer over 2 years ago
  • tokenizer_config.json
    51.2 kB
    Upload tokenizer over 2 years ago