Downloads · 30 days
10
2% of all-time downloads
xverse/XVERSE-65B-Chat-GPTQ-Int8
XVERSE-65B-Chat-GPTQ-Int8 is a text generation model from xverse. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
- [2024/03/25] 发布XVERSE-65B-Chat-GPTQ-Int8量化模型,支持vLLM推理XVERSE-65B-Chat量化模型。 - [2023/12/08] 发布 XVERSE-65B-2 底座模型,该模型在前一版本的基础上进行了 Continual Pre-Training,训练总 token 量达到 3.2 万亿;模型各方面的能力均得到提升,尤其是数学和代码能力,在 GSM8K 上提升 20%,Huma…
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
483
Public
Repo size
69.6 GB
Likes
0
Public
Click a slice to open those files.
.ac23.2 GB · 33%
From the Hugging Face model README
XVERSE-65B 是由深圳元象科技自主研发的支持多语言的大语言模型(Large Language Model),参数规模为 650 亿,本次开源的模型为底座模型 XVERSE-65B,主要特点如下:
XVERSE-65B的模型大小、架构和学习率如下:
| params | d_model | n_heads | n_layers | d_ff | learning rate |
|---|---|---|---|---|---|
| 65B | 8192 | 64 | 80 | 22016 | 1.5e−4 |
XVERSE-65B is a multilingual large language model, independently developed by Shenzhen Yuanxiang Technology. The models released this time is the base model XVERSE-65B. Its key features are as follows:
The models sizes, architectures and learning rate of XVERSE-65B are showed as follows:
| params | d_model | n_heads | n_layers | d_ff | learning rate |
|---|---|---|---|---|---|
| 65B | 8192 | 64 | 80 | 22016 | 1.5e−4 |
我们建议您克隆vllm并按照官方指南进行安装。
We advise you to clone vllm and install it following the official guide.
由于上传的safetensors文件大小超出50GB的最大文件限制,因此我们将safetensors文件切分为3个,因此您可以将它们连接起来以获得整个文件:
cat gptq_model-8bit-128g.safetensors.* > gptq_model-8bit-128g.safetensors
我们演示了如何使用 vLLM 来运行XVERSE-65B-Chat-GPTQ-Int8量化模型:
from vllm import LLM, SamplingParams
model_dir = "xverse/XVERSE-65B-Chat-GPTQ-Int8/"
# Create an LLM.
llm = LLM(model_dir,
trust_remote_code=True)
# Create a sampling params object.
sampling_params = SamplingParams(temperature=0.85, top_p=0.85, max_tokens=2048, repetition_penalty=1.1)
# Generate texts from the prompts. The output is a list of RequestOutput objects
# that contain the prompt, generated text, and other information.
prompts = ["Human: 请你写一篇关于环保的文章,题材是从个人做起。\n\nAssistant: ",]
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Generated text:\n{generated_text}")
Due to the uploaded safetensors file size exceeding the maximum file limit of 50GB, we have divided the safetensors file into three parts, so you can connect them together to obtain the entire file:
cat gptq_model-8bit-128g.safetensors.* > gptq_model-8bit-128g.safetensors
We demonstrated how to use vLLM to run the XVERSE-65B-Chat-GPTQ-Int8 quantization model:
from vllm import LLM, SamplingParams
model_dir = "xverse/XVERSE-65B-Chat-GPTQ-Int8/"
# Create an LLM.
llm = LLM(model_dir,
trust_remote_code=True)
# Create a sampling params object.
sampling_params = SamplingParams(temperature=0.85, top_p=0.85, max_tokens=2048, repetition_penalty=1.1)
# Generate texts from the prompts. The output is a list of RequestOutput objects
# that contain the prompt, generated text, and other information.
prompts = ["Human: 请你写一篇关于环保的文章,题材是从个人做起。\n\nAssistant: ",]
outputs = llm.generate(prompts, sampling_params)
# Print the outputs.
for output in outputs:
prompt = output.prompt
generated_text = output.outputs[0].text
print(f"Generated text:\n{generated_text}")
XVERSE-65B 与其他所有 LLM 一样,在某些情况下可能会产生不准确、有偏见或其他令人反感的内容。因此,请谨慎使用模型生成的内容,请勿将生成的有害内容进行传播,在部署任何 XVERSE-65B 的应用之前,开发人员应根据其具体应用对模型进行安全测试和调优。
我们强烈警告不要将 XVERSE-65B 模型用于制造或传播有害信息,或进行任何可能损害公众、国家、社会安全或违反法规的活动。如果使用 XVERSE-65B 模型产生任何问题,无论是数据安全问题、公共舆论风险,还是模型被误解、滥用、传播或不合规使用所引发的任何风险和问题,我们将不承担任何责任。
Like all other Large Language Models (LLMs), XVERSE-65B may produce inaccurate, biased, or otherwise offensive content under certain circumstances. Therefore, please use the content generated by the model with caution and refrain from disseminating harmful content. Before deploying any application of XVERSE-65B, developers should conduct safety tests and optimization of the model according to its specific application.
We strongly warn against the use of the XVERSE-65B model for producing or spreading harmful information, or conducting any activities that might harm the public, national, or social security, or violate regulations. We assume no responsibility for any problems arising from the use of the XVERSE-65B model, whether it be data security issues, public opinion risks, or any risks and issues caused by misunderstanding, misuse, dissemination, or non-compliance with the model.
使用本仓库的源码需要遵循 Apache-2.0 开源协议,使用 XVERSE-65B 的模型权重则需要遵循模型许可协议。
XVERSE-65B 模型权重对学术研究完全开放,并且支持免费商用。如需申请商业许可证,请填写【申请表】,如有其他问题或合作,请联系 [email protected]。
The use of the source code in this repository must follow the Apache-2.0 open-source license, while the use of the model weights of XVERSE-65B needs to adhere to the Model License Agreement.
The XVERSE-65B model weights are fully open to academic research and support free commercial use. To apply for a commercial license, please fill in the application form. For other questions or collaborations, please contact [email protected].