Text Generation
Transformers
Safetensors
Turkish
llama
Generated from Trainer
text-generation-inference
Instructions to use JuLsez4R/Llama-turkish-lawbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JuLsez4R/Llama-turkish-lawbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JuLsez4R/Llama-turkish-lawbot")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JuLsez4R/Llama-turkish-lawbot") model = AutoModelForCausalLM.from_pretrained("JuLsez4R/Llama-turkish-lawbot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JuLsez4R/Llama-turkish-lawbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JuLsez4R/Llama-turkish-lawbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JuLsez4R/Llama-turkish-lawbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JuLsez4R/Llama-turkish-lawbot
- SGLang
How to use JuLsez4R/Llama-turkish-lawbot 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 "JuLsez4R/Llama-turkish-lawbot" \ --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": "JuLsez4R/Llama-turkish-lawbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "JuLsez4R/Llama-turkish-lawbot" \ --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": "JuLsez4R/Llama-turkish-lawbot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JuLsez4R/Llama-turkish-lawbot with Docker Model Runner:
docker model run hf.co/JuLsez4R/Llama-turkish-lawbot
Download model-00002-of-00003.safetensors from JuLsez4R/Llama-turkish-lawbot: direct link, hf CLI and curl.
- Browser
- Download file 4.93 GB
-
https://huggingface.co/JuLsez4R/Llama-turkish-lawbot/resolve/main/model-00002-of-00003.safetensors
- Command line
-
hf download hf://JuLsez4R/Llama-turkish-lawbot/model-00002-of-00003.safetensors
-
curl -L -o model-00002-of-00003.safetensors https://huggingface.co/JuLsez4R/Llama-turkish-lawbot/resolve/main/model-00002-of-00003.safetensors
4.93 GB
- Xet hash:
- 387d9ca944dd7a0aea716b6b54c7f43d3c65f38ee274a515dfd4d5cdbc573d1f
- Size of remote file:
- 4.93 GB
- SHA256:
- 2678c6d8a67124a9e5c6f1e947967af90d9fe929db559543e05009b904706fcb
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.