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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("golaxy/gogpt-3b-bloom") model = AutoModelForCausalLM.from_pretrained("golaxy/gogpt-3b-bloom") - 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
update
Browse files- README.md +22 -1
- resources/img.png +0 -0
- resources/test1.png +0 -0
- resources/test2.png +0 -0
- resources/test3.png +0 -0
- resources/test4.png +0 -0
- resources/test5.png +0 -0
- resources/test6.png +0 -0
README.md
CHANGED
|
@@ -10,4 +10,25 @@ language:
|
|
| 10 |
- zh
|
| 11 |
---
|
| 12 |
|
| 13 |
-
## chinese-bloom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
- zh
|
| 11 |
---
|
| 12 |
|
| 13 |
+
## chinese-bloom
|
| 14 |
+
|
| 15 |
+
基于Belle中文指令数据微调BLOOM
|
| 16 |
+

|
| 17 |
+
> 训练第一轮足够了,后续第二轮和第三轮提升不大
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
## 测试效果
|
| 22 |
+

|
| 23 |
+

|
| 24 |
+

|
| 25 |
+

|
| 26 |
+

|
| 27 |
+

|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
## 感谢
|
| 31 |
+
|
| 32 |
+
- [@hz大佬-zero_nlp](https://github.com/yuanzhoulvpi2017/zero_nlp)
|
| 33 |
+
- [stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)
|
| 34 |
+
- [Belle数据](https://huggingface.co/BelleGroup)
|
resources/img.png
ADDED
|
resources/test1.png
ADDED
|
resources/test2.png
ADDED
|
resources/test3.png
ADDED
|
resources/test4.png
ADDED
|
resources/test5.png
ADDED
|
resources/test6.png
ADDED
|