Instructions to use AI4Bread/GouMang with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI4Bread/GouMang with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AI4Bread/GouMang", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("AI4Bread/GouMang", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AI4Bread/GouMang with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AI4Bread/GouMang" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI4Bread/GouMang", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AI4Bread/GouMang
- SGLang
How to use AI4Bread/GouMang 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 "AI4Bread/GouMang" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI4Bread/GouMang", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AI4Bread/GouMang" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI4Bread/GouMang", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AI4Bread/GouMang with Docker Model Runner:
docker model run hf.co/AI4Bread/GouMang
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
<div align="center">
|
| 2 |
<img src="https://github.com/InternLM/lmdeploy/assets/36994684/0cf8d00f-e86b-40ba-9b54-dc8f1bc6c8d8" width="600"/>
|
| 3 |
<br /><br />
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
# GouMang Agriculture Large Language Model
|
| 6 |
|
| 7 |
-
|
| 8 |
-
[](https://huggingface.co/AI4Bread/GouMang/)
|
| 9 |
-
This is the official repository of GouMang Agriculture Large Language Model.
|
| 10 |
|
| 11 |
-
We used Xtuner Framework to train and finetune the model.
|
| 12 |
|
| 13 |
|
| 14 |
## ๐ News
|
|
|
|
| 1 |
<div align="center">
|
| 2 |
<img src="https://github.com/InternLM/lmdeploy/assets/36994684/0cf8d00f-e86b-40ba-9b54-dc8f1bc6c8d8" width="600"/>
|
| 3 |
<br /><br />
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
๐ Explore our models on
|
| 7 |
+
[](https://huggingface.co/AI4Bread/GouMang/)
|
| 8 |
|
| 9 |
+
|
| 10 |
+
</div>
|
| 11 |
+
|
| 12 |
# GouMang Agriculture Large Language Model
|
| 13 |
|
| 14 |
+
## This is the official repository of GouMang Agriculture Large Language Model.
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
## We used Xtuner Framework to train and finetune the model.
|
| 17 |
|
| 18 |
|
| 19 |
## ๐ News
|