Instructions to use taide/TAIDE-LX-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use taide/TAIDE-LX-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="taide/TAIDE-LX-7B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("taide/TAIDE-LX-7B") model = AutoModelForCausalLM.from_pretrained("taide/TAIDE-LX-7B") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use taide/TAIDE-LX-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "taide/TAIDE-LX-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "taide/TAIDE-LX-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/taide/TAIDE-LX-7B
- SGLang
How to use taide/TAIDE-LX-7B 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 "taide/TAIDE-LX-7B" \ --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": "taide/TAIDE-LX-7B", "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 "taide/TAIDE-LX-7B" \ --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": "taide/TAIDE-LX-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use taide/TAIDE-LX-7B with Docker Model Runner:
docker model run hf.co/taide/TAIDE-LX-7B
詢問如果已加入部門相關文件做fine-tune後TAIDE的模型,是否可開放給公司其他同仁同時一起使用?是否有建議的環境與框架?
#6
by rueiyuan - opened
很感謝TAIDE團隊開源此具有台灣style模型。
我想詢問如果已加入部門相關文件做fine-tune後TAIDE的模型,是否可開放給部門其他同仁同時一起使用?
是否有建議的環境與框架? 目前使用的Ollama框架,好像是用於本地端(個人電腦),非分享給部門同仁一起使用的方案(架設企業私有雲)
是否有相關的資源可以提供?
再次感謝,靜候回復!
rueiyuan changed discussion title from 是否可將fine tune好的TAIDE模型,開放給公司其他同仁一起使用(同時)? to 是否可將fine tune好的TAIDE模型,開放給公司其他同仁同時一起使用?是否有建議的環境與框架?
rueiyuan changed discussion title from 是否可將fine tune好的TAIDE模型,開放給公司其他同仁同時一起使用?是否有建議的環境與框架? to 詢問如果已加入部門相關文件做fine-tune後TAIDE的模型,是否可開放給公司其他同仁同時一起使用?是否有建議的環境與框架?
您好,
請參考 TAIDE L 類模型社群授權同意書
https://drive.google.com/file/d/1FcUZjbUH6jr4xoCyAronN_slLgcdhEUd/view?pli=1Kuwa 框架和說明
https://kuwaai.org/zh-Hant/os/intro
Regards.