Text Generation
Transformers
PyTorch
Chinese
English
llama
translation
multilingual
large language model
instruction tuning
text-generation-inference
Instructions to use ICTNLP/bayling-13b-diff with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ICTNLP/bayling-13b-diff with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ICTNLP/bayling-13b-diff")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ICTNLP/bayling-13b-diff") model = AutoModelForCausalLM.from_pretrained("ICTNLP/bayling-13b-diff") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ICTNLP/bayling-13b-diff with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ICTNLP/bayling-13b-diff" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ICTNLP/bayling-13b-diff", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ICTNLP/bayling-13b-diff
- SGLang
How to use ICTNLP/bayling-13b-diff 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 "ICTNLP/bayling-13b-diff" \ --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": "ICTNLP/bayling-13b-diff", "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 "ICTNLP/bayling-13b-diff" \ --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": "ICTNLP/bayling-13b-diff", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ICTNLP/bayling-13b-diff with Docker Model Runner:
docker model run hf.co/ICTNLP/bayling-13b-diff
Vily1998 commited on
Commit ·
d07f29c
1
Parent(s): e268919
commit
Browse files
README.md
CHANGED
|
@@ -15,7 +15,9 @@ tags:
|
|
| 15 |
|
| 16 |
**BayLing** (**百聆**, **bǎi líng**) is an instruction-following LLM equipped with advanced language alignment, showing superior capability in English/Chinese generation, instruction following and multi-turn interaction. BayLing can be effortlessly deployed on a consumer-grade GPU with 16GB of memory, and assists users with tasks such as translation, writing, creation, suggestion...
|
| 17 |
|
| 18 |
-
**This model is the *weight-diff* version of BayLing-13B.**
|
|
|
|
|
|
|
| 19 |
|
| 20 |
👇 Learn more about BayLing:
|
| 21 |
|
|
@@ -55,7 +57,7 @@ We would like to express our gratitude to all those who have contributed to BayL
|
|
| 55 |
|
| 56 |
## <a id="Authors">Authors</a>
|
| 57 |
|
| 58 |
-
| [Shaolei Zhang](https://
|
| 59 |
|
| 60 |
| [Yan Zhou](https://zhouyan19.github.io/zhouyan/) | [Langlin Huang](https://nlp.ict.ac.cn/yjdw/xs/ssyjs/202210/t20221019_52686.html) | [Mengyu Bu](https://bingo123122121.github.io/) | [Shangtong Gui](https://github.com/GhostofAdam) |
|
| 61 |
|
|
|
|
| 15 |
|
| 16 |
**BayLing** (**百聆**, **bǎi líng**) is an instruction-following LLM equipped with advanced language alignment, showing superior capability in English/Chinese generation, instruction following and multi-turn interaction. BayLing can be effortlessly deployed on a consumer-grade GPU with 16GB of memory, and assists users with tasks such as translation, writing, creation, suggestion...
|
| 17 |
|
| 18 |
+
**This model is the *weight-diff* version of BayLing-13B-v1.0.**
|
| 19 |
+
|
| 20 |
+
[BayLing-13B-v1.1](https://huggingface.co/ICTNLP/bayling-13b-v1.1) has been released, **BayLing-13B-v1.1 is additionally injected with extensive Chinese knowledge** compared with this model.
|
| 21 |
|
| 22 |
👇 Learn more about BayLing:
|
| 23 |
|
|
|
|
| 57 |
|
| 58 |
## <a id="Authors">Authors</a>
|
| 59 |
|
| 60 |
+
| [Shaolei Zhang](https://zhangshaolei1998.github.io/) | [Qingkai Fang](https://fangqingkai.github.io/) | [Zhuocheng Zhang](https://nlp.ict.ac.cn/yjdw/xs/bsyjs/202210/t20221019_52678.html) | [Zhengrui Ma](https://nlp.ict.ac.cn/yjdw/xs/bsyjs/202210/t20221019_52675.html) |
|
| 61 |
|
| 62 |
| [Yan Zhou](https://zhouyan19.github.io/zhouyan/) | [Langlin Huang](https://nlp.ict.ac.cn/yjdw/xs/ssyjs/202210/t20221019_52686.html) | [Mengyu Bu](https://bingo123122121.github.io/) | [Shangtong Gui](https://github.com/GhostofAdam) |
|
| 63 |
|