ConflLlama collection
Collection
Llama 3.1 finetuned for various conflict tasks • 6 items • Updated
How to use shreyasmeher/ConflLlama-Alt with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="shreyasmeher/ConflLlama-Alt", filename="unsloth.Q4_K_M.gguf", )
llm.create_chat_completion( messages = "\"I like you. I love you\"" )
How to use shreyasmeher/ConflLlama-Alt with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf shreyasmeher/ConflLlama-Alt:Q4_K_M # Run inference directly in the terminal: llama-cli -hf shreyasmeher/ConflLlama-Alt:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf shreyasmeher/ConflLlama-Alt:Q4_K_M # Run inference directly in the terminal: llama-cli -hf shreyasmeher/ConflLlama-Alt:Q4_K_M
# 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 shreyasmeher/ConflLlama-Alt:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf shreyasmeher/ConflLlama-Alt:Q4_K_M
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 shreyasmeher/ConflLlama-Alt:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf shreyasmeher/ConflLlama-Alt:Q4_K_M
docker model run hf.co/shreyasmeher/ConflLlama-Alt:Q4_K_M
How to use shreyasmeher/ConflLlama-Alt with Ollama:
ollama run hf.co/shreyasmeher/ConflLlama-Alt:Q4_K_M
How to use shreyasmeher/ConflLlama-Alt with Unsloth Studio:
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 shreyasmeher/ConflLlama-Alt to start chatting
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 shreyasmeher/ConflLlama-Alt to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for shreyasmeher/ConflLlama-Alt to start chatting
How to use shreyasmeher/ConflLlama-Alt with Docker Model Runner:
docker model run hf.co/shreyasmeher/ConflLlama-Alt:Q4_K_M
How to use shreyasmeher/ConflLlama-Alt with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull shreyasmeher/ConflLlama-Alt:Q4_K_M
lemonade run user.ConflLlama-Alt-Q4_K_M
lemonade list
llm.create_chat_completion(
messages = "\"I like you. I love you\""
)This model is a alternative to my main ConflLlama model, the only difference being a more neutral chat template.
Below describes details about terrorist events.
>>> Event Details:
{summary}
>>> Attack Types:
{combined_attacks}
This model is designed for:
@misc{conflllama,
author = {Meher, Shreyas},
title = {ConflLlama: GTD-Finetuned LLaMA-3 8B},
year = {2024},
publisher = {HuggingFace},
note = {Based on Meta's LLaMA-3 8B and GTD Dataset}
}

4-bit
8-bit
Base model
meta-llama/Meta-Llama-3-8B
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="shreyasmeher/ConflLlama-Alt", filename="", )