Instructions to use golaxy/gogpt-3b-bloom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("golaxy/gogpt-3b-bloom") model = AutoModelForCausalLM.from_pretrained("golaxy/gogpt-3b-bloom", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use golaxy/gogpt-3b-bloom with vLLM:
Install from pip and serve model
# 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 }'Use Docker
docker model run hf.co/golaxy/gogpt-3b-bloom
- SGLang
How to use golaxy/gogpt-3b-bloom 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 "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 }'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 "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 Model Runner
How to use golaxy/gogpt-3b-bloom with Docker Model Runner:
docker model run hf.co/golaxy/gogpt-3b-bloom
Commit ·
207ab5d
1
Parent(s): e05ead3
Update README.md
Browse files
README.md
CHANGED
|
@@ -43,4 +43,16 @@ language:
|
|
| 43 |
|
| 44 |
- [@hz-zero_nlp](https://github.com/yuanzhoulvpi2017/zero_nlp)
|
| 45 |
- [stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)
|
| 46 |
-
- [Belle数据](https://huggingface.co/BelleGroup)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
- [@hz-zero_nlp](https://github.com/yuanzhoulvpi2017/zero_nlp)
|
| 45 |
- [stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)
|
| 46 |
+
- [Belle数据](https://huggingface.co/BelleGroup)
|
| 47 |
+
|
| 48 |
+
## Citation
|
| 49 |
+
|
| 50 |
+
如果你在研究中使用了GoGPT,请按如下格式引用:
|
| 51 |
+
```
|
| 52 |
+
@misc{GoGPT,
|
| 53 |
+
title={GoGPT: Training Medical GPT Model},
|
| 54 |
+
author={Qiang Yan},
|
| 55 |
+
year={2023},
|
| 56 |
+
howpublished={\url{https://github.com/yanqiangmiffy/GoGPT}},
|
| 57 |
+
}
|
| 58 |
+
```
|