Skip to content

调试本地部署ai过程中的遇到的问题请求解答 #14

@ddppt-yy

Description

@ddppt-yy

1、tests目录下的测试脚本在实验过程中发现其使用chat函数似乎参数是缺失的?
`INFO:httpx:HTTP Request: POST http://localhost:11434/api/chat "HTTP/1.1 200 OK"
I am Qwen, an AI designed to assist with answering questions, providing information, and even assisting with creative writing. I'm known for my ability to generate human-like text based on the input it receives. How can I help you today?
INFO:httpx:HTTP Request: POST http://localhost:11434/api/chat "HTTP/1.1 200 OK"
INFO
I would like you to implement a module named TopModule with the following
interface. All input and output ports are one bit unless otherwise
specified.

      - input  a
      - input  b
      - output out

     The module should implement a NOR gate.

Traceback (most recent call last):
File "/home/yh/my_script/MAGE1/MAGE/tests/test_rtl_generator.py", line 66, in
main()
File "/home/yh/my_script/MAGE1/MAGE/tests/test_rtl_generator.py", line 60, in main
is_pass, code = rtl_gen.chat(spec, key)
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: RTLGenerator.chat() missing 2 required positional arguments: 'interface' and 'rtl_path'
(mage)`

1.1 我尝试填写了以下缺失的值:
is_pass, code = rtl_gen.chat(spec, key, None, "./rtl_out/test.v")
但是依然有别的问题。

2、如果需要实时向ai提问,当前环境下似乎还没实现?我理解当前tests目录下的只是在跑测试用例集合。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions