Run this model with HF Jobs
Run HiTruong/Sailor_chatbot on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/HiTruong/Sailor_chatbot. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/HiTruong/Sailor_chatbot on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/HiTruong/Sailor_chatbot. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/HiTruong/Sailor_chatbot. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
Training in progress, step 460, checkpoint
Browse filesFiles changed (4)
123version https://git-lfs.github.com/spec/v1oid sha256:6b67ff0a60d3e55fc44e3b79fb50da0c820d06e492cdb124333bfe327ba11f98size 2969089584123version https://git-lfs.github.com/spec/v1oid sha256:a5d32a1af58c9a4d878002b057a80fe80159df580eb43f425e3669a98b962fc5size 2969089584
123version https://git-lfs.github.com/spec/v1oid sha256:7d5e8381c07674ee0a902055d2f64b64a64c7869b09ac44e61afc2f27d9ba82fsize 1487821532123version https://git-lfs.github.com/spec/v1oid sha256:8650f9237e2c6a5c0b6296ccac23359cdb0669c33a5343bfdda95e5620d792a5size 1487821532
123version https://git-lfs.github.com/spec/v1oid sha256:55dc3891cf2b3d8d8dc43db95c5b57f0c0cb221d2a781aafcb12e6610527f9aasize 1064123version https://git-lfs.github.com/spec/v1oid sha256:902e911f12e188f57124a3f279f5d786a799dffbc557be8b9b558510f04b2a8dsize 1064
12345678953 unmodified lines63646566676813 unmodified lines82838485868788{"best_metric": null,"best_model_checkpoint": null,"epoch": 26.197486535008977,"eval_steps": 500,"global_step": 456,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,53 unmodified lines"learning_rate": 4.960825378228082e-06,"loss": 0.0299,"step": 408}],"logging_steps": 51,13 unmodified lines"attributes": {}}},"total_flos": 3.116251395800801e+17,"train_batch_size": 2,"trial_name": null,"trial_params": null12345678953 unmodified lines6364656667686970717273747513 unmodified lines89909192939495{"best_metric": null,"best_model_checkpoint": null,"epoch": 26.427289048473966,"eval_steps": 500,"global_step": 460,"is_hyper_param_search": false,"is_local_process_zero": true,"is_world_process_zero": true,53 unmodified lines"learning_rate": 4.960825378228082e-06,"loss": 0.0299,"step": 408},{"epoch": 26.36983842010772,"grad_norm": 0.2580316364765167,"learning_rate": 1.2725963752426379e-06,"loss": 0.0258,"step": 459}],"logging_steps": 51,13 unmodified lines"attributes": {}}},"total_flos": 3.1425124395851366e+17,"train_batch_size": 2,"trial_name": null,"trial_params": null
last-checkpoint/adapter_model.safetensors+1-1
last-checkpoint/optimizer.pt+1-1
last-checkpoint/scheduler.pt+1-1
last-checkpoint/trainer_state.json+10-3