Tensoic/Alpaca-Gujarati
Viewer • Updated • 52k • 33 • 5
How to use ayushrupapara/llama3_gujarati_4bit_gguf with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ayushrupapara/llama3_gujarati_4bit_gguf") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ayushrupapara/llama3_gujarati_4bit_gguf")
model = AutoModelForCausalLM.from_pretrained("ayushrupapara/llama3_gujarati_4bit_gguf", device_map="auto")How to use ayushrupapara/llama3_gujarati_4bit_gguf with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ayushrupapara/llama3_gujarati_4bit_gguf # Run inference directly in the terminal: llama cli -hf ayushrupapara/llama3_gujarati_4bit_gguf
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ayushrupapara/llama3_gujarati_4bit_gguf # Run inference directly in the terminal: llama cli -hf ayushrupapara/llama3_gujarati_4bit_gguf
# 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 ayushrupapara/llama3_gujarati_4bit_gguf # Run inference directly in the terminal: ./llama-cli -hf ayushrupapara/llama3_gujarati_4bit_gguf
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 ayushrupapara/llama3_gujarati_4bit_gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf ayushrupapara/llama3_gujarati_4bit_gguf
docker model run hf.co/ayushrupapara/llama3_gujarati_4bit_gguf
How to use ayushrupapara/llama3_gujarati_4bit_gguf with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ayushrupapara/llama3_gujarati_4bit_gguf"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ayushrupapara/llama3_gujarati_4bit_gguf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ayushrupapara/llama3_gujarati_4bit_gguf
How to use ayushrupapara/llama3_gujarati_4bit_gguf with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ayushrupapara/llama3_gujarati_4bit_gguf" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ayushrupapara/llama3_gujarati_4bit_gguf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker run --gpus all \
--shm-size 32g \
-p 30000:30000 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=<secret>" \
--ipc=host \
lmsysorg/sglang:latest \
python3 -m sglang.launch_server \
--model-path "ayushrupapara/llama3_gujarati_4bit_gguf" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ayushrupapara/llama3_gujarati_4bit_gguf",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ayushrupapara/llama3_gujarati_4bit_gguf with Ollama:
ollama run hf.co/ayushrupapara/llama3_gujarati_4bit_gguf
How to use ayushrupapara/llama3_gujarati_4bit_gguf with Docker Model Runner:
docker model run hf.co/ayushrupapara/llama3_gujarati_4bit_gguf
How to use ayushrupapara/llama3_gujarati_4bit_gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ayushrupapara/llama3_gujarati_4bit_gguf
lemonade run user.llama3_gujarati_4bit_gguf-{{QUANT_TAG}}lemonade list
license: apache-2.0
datasets: Tensoic/Alpaca-Gujarati
Finetuned from model: unsloth/llama=3-8b-bnb-4bit
Developed by: Ayush Rupapara
We're not able to determine the quantization variants.