Text Generation
Transformers
Safetensors
baichuan
custom_code
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use Jchew/BaichuanFor_ITxia_chat_help with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jchew/BaichuanFor_ITxia_chat_help with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Jchew/BaichuanFor_ITxia_chat_help", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Jchew/BaichuanFor_ITxia_chat_help", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Jchew/BaichuanFor_ITxia_chat_help with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jchew/BaichuanFor_ITxia_chat_help" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jchew/BaichuanFor_ITxia_chat_help", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Jchew/BaichuanFor_ITxia_chat_help
- SGLang
How to use Jchew/BaichuanFor_ITxia_chat_help 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 "Jchew/BaichuanFor_ITxia_chat_help" \ --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": "Jchew/BaichuanFor_ITxia_chat_help", "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 "Jchew/BaichuanFor_ITxia_chat_help" \ --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": "Jchew/BaichuanFor_ITxia_chat_help", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Jchew/BaichuanFor_ITxia_chat_help with Docker Model Runner:
docker model run hf.co/Jchew/BaichuanFor_ITxia_chat_help
Commit History
-
Upload tokenizer
Verified signatured4302b7 -
Upload BaichuanForCausalLM
Verified signaturefac30c6 -
Upload tokenizer
Verified signaturef7dbee6 -
Upload model
Verified signaturef7a9ef6 -
Training in progress, epoch 20
Verified signature0bb84d0 -
Training in progress, epoch 19
Verified signature78c42db -
Training in progress, epoch 18
Verified signaturef2e4d4c -
Training in progress, epoch 17
Verified signature8045847 -
Training in progress, epoch 16
Verified signature10f55bd -
Training in progress, epoch 15
Verified signature25f45b2 -
Training in progress, epoch 14
Verified signatured9d94a8 -
Training in progress, epoch 13
Verified signature4d246f2 -
Training in progress, epoch 12
Verified signature3edce16 -
Training in progress, epoch 11
Verified signature5781717 -
Training in progress, epoch 10
Verified signature2aed6f0 -
Training in progress, epoch 9
Verified signaturebb3c54f -
Training in progress, epoch 8
Verified signature8625d34 -
Training in progress, epoch 7
Verified signaturee79d283 -
Training in progress, epoch 6
Verified signaturee236c8e -
Training in progress, epoch 5
Verified signature3535c62 -
Training in progress, epoch 4
Verified signature3bf22b9 -
Training in progress, epoch 3
Verified signaturec70d5f3 -
Training in progress, epoch 2
Verified signature43f03d0 -
Training in progress, epoch 1
Verified signature72b18b1 -
Training in progress, epoch 5
Verified signaturea363fb6 -
Training in progress, epoch 4
Verified signature1f004da -
Training in progress, epoch 3
Verified signature25738b2 -
Training in progress, epoch 2
Verified signature07eef24 -
Training in progress, epoch 1
Verified signaturef505720 -
initial commit
Verified signature5d8afe1