BelleGroup/train_3.5M_CN
Viewer โข Updated โข 3.61M โข 1.61k โข 151
How to use golaxy/gogpt-3b-bloom with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="golaxy/gogpt-3b-bloom") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("golaxy/gogpt-3b-bloom")
model = AutoModelForCausalLM.from_pretrained("golaxy/gogpt-3b-bloom")How to use golaxy/gogpt-3b-bloom with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "golaxy/gogpt-3b-bloom"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "golaxy/gogpt-3b-bloom",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/golaxy/gogpt-3b-bloom
How to use golaxy/gogpt-3b-bloom with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "golaxy/gogpt-3b-bloom" \
--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": "golaxy/gogpt-3b-bloom",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "golaxy/gogpt-3b-bloom" \
--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": "golaxy/gogpt-3b-bloom",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use golaxy/gogpt-3b-bloom with Docker Model Runner:
docker model run hf.co/golaxy/gogpt-3b-bloom
ๅบไบๅคๆ ทๆงไธญๆๆไปคๆฐๆฎๅพฎ่ฐ็ไธญๆBLOOMๅบๅบงๆจกๅ
่ฎญ็ป็ฌฌไธ่ฝฎ่ถณๅคไบ๏ผๅ็ปญ็ฌฌไบ่ฝฎๅ็ฌฌไธ่ฝฎๆๅไธๅคง
| ๆจกๅๅๅญ | ๅๆฐ้ | ๆจกๅๅฐๅ |
|---|---|---|
| gogpt-560m | 5.6ไบฟๅๆฐ | ๐คgolaxy/gogpt-560m |
| gogpt-3b | 30ไบฟๅๆฐ | ๐คgolaxy/gogpt-3b-bloom |
| gogpt-7b | 70ไบฟๅๆฐ | ๐คgolaxy/gogpt-7b-bloom |
ๅฆๆไฝ ๅจ็ ็ฉถไธญไฝฟ็จไบGoGPT๏ผ่ฏทๆๅฆไธๆ ผๅผๅผ็จ๏ผ
@misc{GoGPT,
title={GoGPT: Training Medical GPT Model},
author={Qiang Yan},
year={2023},
howpublished={\url{https://github.com/yanqiangmiffy/GoGPT}},
}