吴旭华 发表于 2024-7-18 02:25:36

如何快速接入llama 3 ?送上最便捷教程

一、Meta llama 3介绍

当地时间4月18日,Meta 发布两款开源Llama 3 8B与Llama 3 70B模型。

https://img-blog.csdnimg.cn/img_convert/1c6cb437b8429825a21519762dd12735.webp?x-oss-process=image/format,png
按照Meta的说法,Llama 3 8B和Llama 3 70B是目前同体量下,性能最好的开源模型。
在Llama 3发布后,小扎向外媒表示,“我们的目标不是与开源模型竞争,而是要超过所有人,打造最领先的人工智能。”
具体来说,Llama 3的亮点和特性概括如下:


[*]基于超过15T token训练,大小相当于Llama 2数据集的7倍还多;
[*]训练服从比Llama 2高3倍;
[*]支持8K长文本,改进的tokenizer具有128K token的词汇量,可实现更好的性能;
[*]在大量紧张基准测试中均具有最先辈性能;
[*]加强的推理和代码能力;
[*]安全性有重大突破,带有Llama Guard 2、Code Shield 和 CyberSec Eval 2的新版信任和安全工具,还能够比Llama 2有更好“错误拒绝体现”。
二、Meta llama 3模型使用方法

打开沃卡API网站:https://4.0.wokaai.com,参考调用OpenAI 模型的方法即可调用
llama 3系列模型。

https://img-blog.csdnimg.cn/img_convert/393d55fea131964bb8f01967fdf1fa63.webp?x-oss-process=image/format,png

https://img-blog.csdnimg.cn/img_convert/64edf44d9652d8b3cca93b6bbfe6be95.webp?x-oss-process=image/format,png
三、使用接口介绍

3.5模型API接口:https://3.5.wokaai.com
全模型API接口:https://4.0.wokaai.com
额度购买入口:https://shopwk.wokaai.com

https://img-blog.csdnimg.cn/img_convert/6509ede49575de65ce45342e76eb6820.png
3.5接口模型API使用
1、前往https://shopwk.wokaai.com根据需求购买对应额度卡密;

https://img-blog.csdnimg.cn/img_convert/daaec3d48b04a4e156d51aec0793a805.webp?x-oss-process=image/format,png
2、前往3.5站点https://3.5.wokaai.com注册账号;复制购买的卡密后进行兑换;
流程:注册----登岸后点击-"充值"-填入卡密后点击-"兑换";

https://img-blog.csdnimg.cn/img_convert/96eef083f8baff5145fac8cc9e73d73c.webp?x-oss-process=image/format,png
3、点击"令牌"---"添加新的令牌"---填好对应的信息后点击---"复制"---复制的就是KEY,然后配上接口https://3.5.wokaai.com使用即可;

https://img-blog.csdnimg.cn/img_convert/0dc8abac64515f63f912a4c3944e4978.webp?x-oss-process=image/format,png


https://img-blog.csdnimg.cn/img_convert/07b80a7bb57dffaa630aeb3aabd056b3.webp?x-oss-process=image/format,png
全模型接口API使用
1、前往https://shopwk.wokaai.com根据需求购买对应额度卡密;

https://img-blog.csdnimg.cn/img_convert/fe0563dc2f8e9d186f378648d9aa7ac7.webp?x-oss-process=image/format,png
2、前往全模型API站点https://4.0.wokaai.com注册账号;复制购买的卡密后进行兑换;
流程:注册----登岸后点击-"充值"-填入卡密后点击-"兑换";

https://img-blog.csdnimg.cn/img_convert/96eef083f8baff5145fac8cc9e73d73c.webp?x-oss-process=image/format,png
3、点击"令牌"---"添加新的令牌"---填好对应的信息后点击---"复制"---复制的就是KEY,然后配上接口https://4.0.wokaai.com使用即可;

https://img-blog.csdnimg.cn/img_convert/9eff9b0d2a349da5e746534be41208aa.webp?x-oss-process=image/format,png


https://img-blog.csdnimg.cn/img_convert/d8a34e9dced75cc6a3c182a55541146c.webp?x-oss-process=image/format,png
四、token计算规则

什么是 token?

Token 是大语言模型处置惩罚信息的最小单元,它介于“字”和“词”之间,你可以用下方的网址,来计算一段笔墨会变成多少 token:https://gpt-tokenizer.dev

https://img-blog.csdnimg.cn/img_convert/95804a897f2aac7d7e477db9d7646a2e.webp?x-oss-process=image/format,png
大部门情况下,你都可以使用 1 汉字 = 2 token 来近似估算中文谈天的中文所需 token 数。
请注意,若您觉得明显提问字数很少,token计算却许多,导致费用产生许多。这并不是中转api出现问题,根本都是因为您的上下文token合计数很大!
若遇到此情况,请新建对话或关闭上下文!
五、如何购买

请前往https://shopwk.wokaai.com进行购买后使用,如有疑问请联系客服。

https://img-blog.csdnimg.cn/img_convert/d9112d751dadfc14dc563c59af3f937b.webp?x-oss-process=image/format,png
然后可以开始愉快地使用AI 全模型啦!



免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 如何快速接入llama 3 ?送上最便捷教程