本地电脑轻松部署GPT4(无需账号)!
Posted Dr.sky_
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了本地电脑轻松部署GPT4(无需账号)!相关的知识,希望对你有一定的参考价值。
最近有个超级好玩的Github开源代码分享给大家,可以实现直接在本地电脑上运行GPT4,实现给机器人对话,获得想要的内容,亲测好用!废话不多说,直接上干货!
目录
一、Github项目地址
实现效果:
二、操作步骤
2.1 下载代码
如果大家本地可以顺畅使用Github,那么直接在上述Github链接进行下载代码即可,若如法实现,可以使用以下网盘链接:
链接:https://pan.baidu.com/s/1-Ksx-1s16z5guLKKNJ5Hgg
提取码:m8lx
2.2 操作方法
以下是开始使用 CPU 量化 GPT4All 模型检查点的方法:
1. 下载文件 gpt4all-lora-quantized.bin
并放到chat文件夹下。
2. 运行适用于您的操作系统的相应命令:
系统版本 | 命令 |
---|---|
M1 Mac/OSX | cd chat;./gpt4all-lora-quantized-OSX-m1 |
Linux | cd chat;./gpt4all-lora-quantized-linux-x86 |
Windows(PowerShell) | cd chat;./gpt4all-lora-quantized-win64.exe |
英特尔 Mac/OSX | cd chat;./gpt4all-lora-quantized-OSX-intel |
2.3 详细步骤
以win10/11系统为例:搜索PowerShell,然后运行
三、实现效果
3.1 问题一:中国最好的三所大学?
the best university in china.
回答结果:
There are many universities in China but here is a list of three top-ranking institutions based on their performance and reputation for excellence: 1) Peking University, Beijing; 2) Tsinghua University, Bei
jing; 3) Shanghai JiaoTong University (Jiaotong), Shanghai.
翻译:
中国有很多大学,但根据它们的表现和卓越的声誉,这里列出了三所排名靠前的大学:1)北京大学,北京;2)清华大学,北京
京;3)上海交通大学,上海;
结果基本是正确的,hhh(复旦的友友当作看不见)。
3.2 问题二:用python实现字符串逆排序
Reverse a string in python.
回答结果:
In Python, you can reverse a string by using slicing and reversal operators on it like this -
```python
string = "Hello World" # replace with your desired input string
reversed_str = str(input)[:-len(input):] + str(input)[:-1].reverse() ## or just use reverse() method instead of slicing and reversal operators.
结果还是很不错的,代码运行起来也可以实现预期效果。
3.3 问题三:写一首赞美春天的诗句
Help me write a poem praising spring, about 100 words.
回答结果:
Spring is the season of rebirth and renewal; it's when flowers bloom again after being dormant for months on end. The air smells sweet with freshness as you walk through fields filled with wildflowers in fu
ll blossoms, their colors vibrantly alive against a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The birds are chirping and singing again; it's like they have been waiting for spring all along too! The sun shines brighter than ever before as you walk through fields filled with wildflowers in full bloss
oms, their colors vibrantly alive against a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The air smells sweet and fresh again; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their colors vi
brantly alive against a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The sun shines brighter than ever before; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their color
s vibrantly alive against a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The air smells sweet; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their colors vibrantly alive ag
ainst a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The sun shines brighter than ever before; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their color
s vibrantly alive against a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The air smells sweet; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their colors vibrantly alive ag
ainst a backdrop of blue skies or the greenest emerald hues that nature has to offer.
The sun shines brighter than ever before; it's like everything is renewed once more! The birds are chirping and singing again as you walk through fields filled with wildflowers in full blossoms, their color
s
翻译结果:
春天是万物重生的季节;它是指花朵在休眠了几个月后重新开放。当你走在满是野花的田野里,空气闻起来清新而甜美。所有的花朵,它们的颜色在蓝天或大自然所提供的最绿的祖母绿的背景下充满活力。鸟儿又在啁啾歌唱了;就像它们一直在等待春天一样!当你走过开满野花的田野时,阳光比以往任何时候都更明媚。在蓝天或大自然提供的最绿的祖母绿的背景下,它们的颜色充满活力。空气再次散发出甜蜜和清新的气息;就好像一切都重新获得了新生!当你走过满是盛开的野花的田野时,鸟儿又在啁啾歌唱了。在蓝天或大自然所提供的最翠绿的色调的背景下,这座城市充满活力。空气闻起来很甜;就好像一切都重新获得了新生!当你走过满是盛开的野花的田野时,鸟儿又在啁啾和歌唱,它们的颜色充满活力。太阳比以往任何时候都更明亮;就好像一切都重新获得了新生!当你走过满是盛开的野花的田野时,鸟儿又在啁啾歌唱了年代。
四、是否可以实现中文对话
从机器人回答结果可知,目前这个项目暂不直接支持中文对话的,大家想玩的话,可以Github搜索Chinese-LLaMA-Alpaca,后面有时间我会再出一篇博文,跟大家一起体验。
结果还可以,hhh。
友情提示:
如果大家无法正常使用上述方法,可以先订阅我的专栏“机器学习|深度学习|自然语言处理”,然后私信我,博主帮你解决,毕竟博主板砖也不易,希望大家理解,555。
Discuz设置QQ账号登陆时无需完善账号信息的方法
用过Discuz搭建过论坛的朋友或者经常逛论坛的朋友都知道,论坛一步一步升级后增加了很多的特色之处,也越来越人性化,关于会员登陆方面就做了很大的 改进,之前的会员必须注册账号,每次发帖阅览都是要登陆账号,作为游客进入不了论坛的发帖页面。现在有了微信登陆和QQ登陆就给会员带来了极大的方便。而 QQ登陆就是只要电脑上挂着QQ就可以一键登陆。如下图。
那么这个功能分别是在哪里开启的呢?这里就在这大概说下QQ账号登陆是在网站后台的有一个云平台的地方开启就可以了。但是阿D所要描述的是,如果是一个新的QQ账号没有注册成为会员之前如果使用QQ一键登陆就会跳转到请完善信息。如下图所示:
那么这里用QQ账号登陆岂不就是一个摆设了,毫无意义可言了。登陆之后不能浏览和发帖的,很多人就算是使用QQ登陆了,如果还要填写完善信息才有相应的权
限,这样很多人登陆了也会立即走开了。这样就会流失一部分流量个会员了,那么如何跳过这个完善信息的步骤呢?,一般普通游客是不是就有这些浏览论坛帖子和
发帖的权限了,如果我们让使用QQ账号登陆就有这些权限,是不是相当于完善了它的注册信息了呢?
首先登陆网站后台在应用里找到开启过的QQ互联,点击QQ互联设置即可如下图所示:
因为当使用QQ登陆的时候默认的就是QQ游客的身份,所以要求完善账户信息,而当我们在网站后台设置一下开启QQ绑定登陆之后就在用户组给他一个普通用户 的的身份,这样就不需要在提示完善信息了,登陆之后自然也就有了浏览和发帖的权限了。以上几个步骤就是QQ账号登陆后不需要再完善账号资料的设置方法。 希望本文可以帮到一些有需要的站长朋友们。交流QQ:2881064157
以上是关于本地电脑轻松部署GPT4(无需账号)!的主要内容,如果未能解决你的问题,请参考以下文章
OPEN AI接入MidJourney 画图支持GPT4中文智能优化效果惊艳