Giter Site home page Giter Site logo

petrogpt's Introduction

PetroGPT石油大模型

石油人的智慧伙伴,引领能源行业的创新与发展

License Version python version support os stars

PetroGPT是石油行业中文大语言模型。基于160万条石油领域数据进行训练优化,语料覆盖地质勘探、石油工程、油气储运、石油化工四大石油生成过程。

最新动态

  • [2023-12-29] PetroGPT 1.0版本发布,提供高精度石油生成大模型。
    • 基于xxx模型进行训练,采用xxx方式

特性

  • 高精度

  • 高可用性ß

使用说明

环境安装

首先需要下载本仓库:

git clone https://github.com/PetroGPT/PetroGPT
cd PetroGPT
conda create -n petrogpt python=3.10
conda activate petrogpt
pip install -r requirements.txt -i  https://pypi.tuna.tsinghua.edu.cn/simple 
pip install -e .

代码调用

可以通过如下代码调用 PetroGPT 模型来生成对话:

>>> from transformers import AutoTokenizer, AutoModel
>>> tokenizer = AutoTokenizer.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True)
>>> model = AutoModel.from_pretrained("THUDM/chatglm2-6b", trust_remote_code=True, device='cuda')
>>> model = model.eval()
>>> response, history = model.chat(tokenizer, "你好", history=[])
>>> print(response)
你好👋!我是人工智能助手 ChatGLM2-6B,很高兴见到你,欢迎问我任何问题>>> response, history = model.chat(tokenizer, "重质油是什么", history=history)
>>> print(response)
" 重质油是一种具有较高密度和粘度的石油产品它主要由较重的烃类化合物组成如烷烃环烷烃和芳香烃等在石油开采过程中重质油通常位于原油的底部其密度和粘度较大难以通过传统的石油开采技术进行分离和提取因此重质油的开发需要采用特殊的工艺和技术如热裂化催化裂化和加氢裂化等重质油的应用范围广泛包括作为燃料润滑油基础油化工原料等由于其较高的热值和较低的燃烧排放重质油在能源领域具有重要的地位此外重质油还可以用于生产合成橡胶塑料等产品为工业发展提供重要原材料然而由于重质油的开采和处理成本较高其在市场上的竞争力相对较弱近年来随着环保意识的提高和对可再生能源的关注重质油的需求逐渐减少。"

web体验

为了方便用户直接使用,我们提供了体验网址

数据集说明

数据生产方式

后续开发计划

  • 1、增加石油计算功能
  • 2、持续优化扩充数据集xxxx

petrogpt's People

Contributors

danteeeee1018 avatar jiaohuix avatar phvis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.