Instructions to use SedatAl/Turkish_Law_ChatBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SedatAl/Turkish_Law_ChatBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SedatAl/Turkish_Law_ChatBot")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SedatAl/Turkish_Law_ChatBot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SedatAl/Turkish_Law_ChatBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SedatAl/Turkish_Law_ChatBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SedatAl/Turkish_Law_ChatBot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SedatAl/Turkish_Law_ChatBot
- SGLang
How to use SedatAl/Turkish_Law_ChatBot 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 "SedatAl/Turkish_Law_ChatBot" \ --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": "SedatAl/Turkish_Law_ChatBot", "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 "SedatAl/Turkish_Law_ChatBot" \ --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": "SedatAl/Turkish_Law_ChatBot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use SedatAl/Turkish_Law_ChatBot with Docker Model Runner:
docker model run hf.co/SedatAl/Turkish_Law_ChatBot
Commit History
-
Update README.md
Verified signaturee0af3fc
-
Update README.md
Verified signature6494d09 -
Update README.md
Verified signature2e770c4
-
Create generation_config.json
Verified signature250951f -
Rename adapter_config.json to config.json
Verified signaturec2c95fe -
Rename adapter_model.safetensors to model.safetensors
Verified signaturee54bfca -
Rename model.safetensors to adapter_model.safetensors
Verified signatureea9a7f3 -
Delete config.json
Verified signature6956135
-
Rename adapter_model.safetensors to model.safetensors
Verified signature374513d -
Update config.json
Verified signaturef369b15 -
Update config.json
Verified signature13d3b27 -
Update config.json
Verified signature0b8bc0d -
Create config.json
Verified signaturef78aff7 -
Update README.md
Verified signature0f97af8 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x fastercf37810 -
Upload model trained with Unsloth
Verified signatureUpload model trained with Unsloth 2x faster9d63091 -
Upload README.md with huggingface_hub
Verified signature707be85 -
initial commit
Verified signature4e8aa3c