Text Generation
PEFT
Safetensors
Transformers
English
Turkish
lora
sft
trl
instruction-tuned
witcher
conversational
Eval Results (legacy)
Instructions to use efebaskin/witcher-llama3-8b-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use efebaskin/witcher-llama3-8b-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Meta-Llama-3-8B-Instruct") model = PeftModel.from_pretrained(base_model, "efebaskin/witcher-llama3-8b-lora") - Transformers
How to use efebaskin/witcher-llama3-8b-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="efebaskin/witcher-llama3-8b-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("efebaskin/witcher-llama3-8b-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use efebaskin/witcher-llama3-8b-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "efebaskin/witcher-llama3-8b-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efebaskin/witcher-llama3-8b-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/efebaskin/witcher-llama3-8b-lora
- SGLang
How to use efebaskin/witcher-llama3-8b-lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "efebaskin/witcher-llama3-8b-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efebaskin/witcher-llama3-8b-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
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 "efebaskin/witcher-llama3-8b-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "efebaskin/witcher-llama3-8b-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use efebaskin/witcher-llama3-8b-lora with Docker Model Runner:
docker model run hf.co/efebaskin/witcher-llama3-8b-lora
Download tokenizer.json from efebaskin/witcher-llama3-8b-lora: direct link, hf CLI and curl.
- Browser
- Download file 17.2 MB
-
https://huggingface.co/efebaskin/witcher-llama3-8b-lora/resolve/main/tokenizer.json
- Command line
-
hf download hf://efebaskin/witcher-llama3-8b-lora/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/efebaskin/witcher-llama3-8b-lora/resolve/main/tokenizer.json
17.2 MB
- Xet hash:
- 6212075fb2589014d7a8074f5c8e908bc6f8b7ca0608387fd4fc9747bbfe526e
- Size of remote file:
- 17.2 MB
- SHA256:
- 42245018febb197f678c617aa628114f94db7080a6d3eb5304197fdf74ff30f3
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.