Instructions to use HiTruong/Sailor_chatbot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HiTruong/Sailor_chatbot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HiTruong/Sailor_chatbot") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HiTruong/Sailor_chatbot") model = AutoModelForCausalLM.from_pretrained("HiTruong/Sailor_chatbot", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use HiTruong/Sailor_chatbot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HiTruong/Sailor_chatbot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTruong/Sailor_chatbot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HiTruong/Sailor_chatbot
- SGLang
How to use HiTruong/Sailor_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 "HiTruong/Sailor_chatbot" \ --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": "HiTruong/Sailor_chatbot", "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 "HiTruong/Sailor_chatbot" \ --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": "HiTruong/Sailor_chatbot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HiTruong/Sailor_chatbot with Docker Model Runner:
docker model run hf.co/HiTruong/Sailor_chatbot
Commit History
-
Upload config.json
Verified signaturecf05efb
-
Update README.md
Verified signature07fb13e -
Create README.md
Verified signatureb9a7d37 -
Training in progress, step 510, checkpoint
Verified signature0b7e97b -
Training in progress, step 510
Verified signature19d6548 -
Training in progress, step 508, checkpoint
Verified signaturea3a6d2a -
Training in progress, step 508
Verified signatured857b04 -
Training in progress, step 504, checkpoint
Verified signature40aeaea -
Training in progress, step 504
Verified signature18dd07f -
Training in progress, step 500, checkpoint
Verified signaturee762ce6 -
Training in progress, step 500
Verified signatureee6296b -
Training in progress, step 496, checkpoint
Verified signature4dd1fa5 -
Training in progress, step 496
Verified signature8b8688c -
Training in progress, step 492, checkpoint
Verified signaturebe5d7f3 -
Training in progress, step 492
Verified signature5151fee -
Training in progress, step 488, checkpoint
Verified signatured226fda -
Training in progress, step 488
Verified signature2620114 -
Training in progress, step 484, checkpoint
Verified signature9053e43 -
Training in progress, step 484
Verified signature57048aa -
Training in progress, step 480, checkpoint
Verified signaturef2b94de -
Training in progress, step 480
Verified signaturec47ffb3 -
Training in progress, step 476, checkpoint
Verified signaturebb3ccee -
Training in progress, step 476
Verified signatureeb52b00 -
Training in progress, step 472, checkpoint
Verified signaturee4409c4 -
Training in progress, step 472
Verified signature51b110a -
Training in progress, step 468, checkpoint
Verified signaturea2f6f18 -
Training in progress, step 468
Verified signature512d621 -
Training in progress, step 464, checkpoint
Verified signaturef53d19c -
Training in progress, step 464
Verified signaturee604836 -
Training in progress, step 460, checkpoint
Verified signature7bfe946 -
Training in progress, step 460
Verified signature2c88681 -
Training in progress, step 456, checkpoint
Verified signaturea39f6f7 -
Training in progress, step 456
Verified signaturec822453 -
Training in progress, step 452, checkpoint
Verified signature19ae775 -
Training in progress, step 452
Verified signature34029d2 -
Training in progress, step 448, checkpoint
Verified signaturefbf10cf -
Training in progress, step 448
Verified signature4234df9 -
Training in progress, step 444, checkpoint
Verified signature71f67ce -
Training in progress, step 444
Verified signaturedf0e069 -
Training in progress, step 440, checkpoint
Verified signature6e6972e -
Training in progress, step 440
Verified signatured0baf69 -
Training in progress, step 436, checkpoint
Verified signature5e2ef68 -
Training in progress, step 436
Verified signaturee79b35f -
Training in progress, step 432, checkpoint
Verified signature7148197 -
Training in progress, step 432
Verified signaturee090f5f -
Training in progress, step 428, checkpoint
Verified signature0eb3d78 -
Training in progress, step 428
Verified signatureed407b6 -
Training in progress, step 424, checkpoint
Verified signature014e364 -
Training in progress, step 424
Verified signature73fdd4a -
Training in progress, step 420, checkpoint
Verified signature6cdd11b