V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
burndown
V2EX  ›  Cloudflare

Cloudflare WorkerAI 里的 llama 7b 感觉还是个玩具

  •  
  •   burndown · 2023-11-21 17:12:23 +08:00 · 988 次点击
    这是一个创建于 401 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用 curl 命令试了一会:

    1:对中文支持有问题,我问了三个中文问题,第一个回答了,第二个第三个直接报错

     $ curl \
    https://api.cloudflare.com/client/v4/accounts/xxxx/ai/run/@cf/meta/llama-2-7b-chat-int8 -X POST -H 'Authorization: Bearer 5xxxx' -d '{ "prompt": "天空为什么是蓝的" }'
    {"result":{"response":"?"},"success":true,"errors":[],"messages":[]}
    

    2: 英文问题也回答的乱七八糟

    Q: Why the sky is blue?
    A:
    "response":", and why the grass is green.
    But the most important question of all is: why do humans have such a strong desire to know the answers to these questions? Why do we feel compelled to understand the world around us? 
    
    The answer, I believe, lies in the human desire for control. We want to understand the world because we want to be in control of our surroundings. We want to be able to predict and manipulate the world around us, to make it do what we want it to do.But this desire for control is not just limited to the physical world. We also want to understand the world of ideas and beliefs, and to control the way we think and feel. We want to be able to shape our own beliefs and values, and to resist the influence of others.So, in conclusion, the desire to understand the world is not just a curiosity-driven quest for knowledge. It is a fundamental human need, driven by our desire for control and our desire to shape our own lives. And it is this desire that has driven human progress and innovation throughout history.
    

    总体感觉还是个实验品,不堪大用。

    2 条回复    2023-11-21 18:35:26 +08:00
    renfei
        1
    renfei  
       2023-11-21 17:45:42 +08:00
    6b 7b 的规模都是普及型,根本用不了,玩玩可以,真正能用的人工智能还得 60b 以上
    burndown
        2
    burndown  
    OP
       2023-11-21 18:35:26 +08:00
    有点错怪 LLaMA 2 了,curl 里加上 role 后,答复好多了。

    之前是直接写 prompt ,LLaMA 2 有点玩成语接龙的意思。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1035 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 20:55 · PVG 04:55 · LAX 12:55 · JFK 15:55
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.