Instructions to use golaxy/gogpt-math-560m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use golaxy/gogpt-math-560m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="golaxy/gogpt-math-560m")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("golaxy/gogpt-math-560m") model = AutoModelForCausalLM.from_pretrained("golaxy/gogpt-math-560m") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use golaxy/gogpt-math-560m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "golaxy/gogpt-math-560m" # 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-math-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/golaxy/gogpt-math-560m
- SGLang
How to use golaxy/gogpt-math-560m 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-math-560m" \ --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-math-560m", "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-math-560m" \ --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-math-560m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use golaxy/gogpt-math-560m with Docker Model Runner:
docker model run hf.co/golaxy/gogpt-math-560m
Commit ·
2d55058
1
Parent(s): eea471d
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,55 +19,6 @@ language:
|
|
| 19 |
- 🚀多样性指令数据
|
| 20 |
- 🚀筛选高质量中文数据
|
| 21 |
|
| 22 |
-
| 模型名字 | 参数量 | 模型地址 |
|
| 23 |
-
|------------|--------|------|
|
| 24 |
-
| gogpt-560m | 5.6亿参数 | 🤗[golaxy/gogpt-560m](https://huggingface.co/golaxy/gogpt-560m) |
|
| 25 |
-
| gogpt-3b | 30亿参数 | 🤗[golaxy/gogpt-3b](https://huggingface.co/golaxy/gogpt-3b) |
|
| 26 |
-
| gogpt-7b | 70亿参数 | 🤗[golaxy/gogpt-7b](https://huggingface.co/golaxy/gogpt-7b) |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
## 测试效果
|
| 30 |
-

|
| 31 |
-

|
| 32 |
-

|
| 33 |
-

|
| 34 |
-

|
| 35 |
-

|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
## TODO
|
| 39 |
-
- 进行RLFH训练
|
| 40 |
-
- 后续加入中英平行语料
|
| 41 |
-
|
| 42 |
-
## 感谢
|
| 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 |
-
(base) [searchgpt@worker2 output-bloom-7b]$ cat README.md ^C
|
| 48 |
-
(base) [searchgpt@worker2 output-bloom-7b]$ vim README.md
|
| 49 |
-
(base) [searchgpt@worker2 output-bloom-7b]$ cat README.md
|
| 50 |
-
---
|
| 51 |
-
license: apache-2.0
|
| 52 |
-
datasets:
|
| 53 |
-
- BelleGroup/train_2M_CN
|
| 54 |
-
- BelleGroup/train_3.5M_CN
|
| 55 |
-
- BelleGroup/train_1M_CN
|
| 56 |
-
- BelleGroup/train_0.5M_CN
|
| 57 |
-
- BelleGroup/school_math_0.25M
|
| 58 |
-
language:
|
| 59 |
-
- zh
|
| 60 |
-
---
|
| 61 |
-
|
| 62 |
-
## GoGPT
|
| 63 |
-
|
| 64 |
-
基于中文指令数据微调BLOOM
|
| 65 |
-

|
| 66 |
-
> 训练第一轮足够了,后续第二轮和第三轮提升不大
|
| 67 |
-
|
| 68 |
-
- 🚀多样性指令数据
|
| 69 |
-
- 🚀筛选高质量中文数据
|
| 70 |
-
|
| 71 |
| 模型名字 | 参数量 | 模型地址 |
|
| 72 |
|------------|--------|------|
|
| 73 |
| gogpt-560m | 5.6亿参数 | 🤗[golaxy/gogpt-560m](https://huggingface.co/golaxy/gogpt-560m) |
|
|
@@ -94,4 +45,3 @@ language:
|
|
| 94 |
- [@hz大佬-zero_nlp](https://github.com/yuanzhoulvpi2017/zero_nlp)
|
| 95 |
- [stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)
|
| 96 |
- [Belle数据](https://huggingface.co/BelleGroup)
|
| 97 |
-
|
|
|
|
| 19 |
- 🚀多样性指令数据
|
| 20 |
- 🚀筛选高质量中文数据
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
| 模型名字 | 参数量 | 模型地址 |
|
| 23 |
|------------|--------|------|
|
| 24 |
| gogpt-560m | 5.6亿参数 | 🤗[golaxy/gogpt-560m](https://huggingface.co/golaxy/gogpt-560m) |
|
|
|
|
| 45 |
- [@hz大佬-zero_nlp](https://github.com/yuanzhoulvpi2017/zero_nlp)
|
| 46 |
- [stanford_alpaca](https://github.com/tatsu-lab/stanford_alpaca)
|
| 47 |
- [Belle数据](https://huggingface.co/BelleGroup)
|
|
|