No description provided.

I used your code and data published on https://sites.google.com/view/iaudittool/home and followed the paper to download the MetaTrustSig/13b_reasoner model .
But when it generated the reasons, I found the result contains Russian and French and Chinease,why would this happen?

image.png

In this picture, your result begins with response surrounded by the red box. I confused a lot,Hope you can solve this problem.

sqrt81 changed pull request status to open
MetaTrust org

Hi, thanks for your interesting. It is quite strange.
image.png

We do not have this issue. Could you inference using the precision float16?

miniconda3/envs/torch/lib/python3.10/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
from .autonotebook import tqdm as notebook_tqdm
Loading checkpoint shards: 100%|██████████| 11/11 [00:00<00:00, 16.76it/s]
Setting pad_token_id to eos_token_id:2 for open-end generation.

Below is an instruction that describes a reasoning task.
Delve into the core aspects and their significance. Use the label name to draw an informed inference.

Instruction:

Examine the code's interactions and logic flow. Based on the label name, deduce the primary reason.

Input:

The method Factory in the smart contract decreaseAuthCounts

function decreaseAuthCounts(address[] memory signatories_, uint[] memory decrements) virtual public returns (uint[] memory counts) { require(signatories_.length == decrements.length, 'two array lenth not equal'); counts = new uint[](signatories_.length); for(uint i=0; i<signatories_.length; i++) counts[i] = decreaseAuthCount(signatories_[i], decrements[i]); }

As a Callee:

Routines that invoke Factory:

function decreaseAuthCounts_(uint[] memory decrements) virtual external returns (uint[] memory counts) { return decreaseAuthCounts(signatories, decrements); }

As a Caller:

External routines invoked by Factory:

function decreaseAuthCount(address signatory, uint decrement) virtual public onlyAuthorty returns (uint count) { count = authCountOf[signatory]; if(count < decrement) decrement = count; return _decreaseAuthCount(signatory, decrement); }

Response:

With safe as the code's label, let's systematically uncover the rationale.

The decreaseAuthCounts function appears to be safe. It takes two arrays of inputs (signatories_, which contains addresses, and decrements) and iterates over them using a loop. For each iteration, it calls the decreaseAuthCount function with the corresponding address from signatories_ and decrement value from decrements. The function then saves the result in another array called counts.

There are no obvious vulnerabilities or issues with this code. However, without seeing the implementation of the decreaseAuthCount function, we cannot fully assess its safety.

Screenshot 2024-11-18 at 7.56.28 PM.png

MetaTrust org

even in float32, it is fine.

Marvinmw changed pull request status to closed

Sign up or log in to comment