Giter VIP home page Giter VIP logo

Comments (3)

kyakuno avatar kyakuno commented on May 29, 2024

Pythonの入力と出力

prompt 医療用語の訂正: こんにちは、先生。最近手足の経連があります。
token [[    8  1551  3155     4 27421    42     8 13477     3  3546     5  6356
    247   797     4   970   921  2929     5     1]]
encoder_outputs_prompt [[[-3.55517380e-02 -9.66443792e-02  6.48157671e-02 ... -6.34642988e-02
   -7.90138617e-02  2.00392544e-01]
  [ 1.37564301e-01  3.65253277e-02 -5.27102314e-02 ...  1.04192518e-01
   -1.44698676e-02 -2.13405922e-01]
  [ 1.02790155e-01  1.21800102e-01  2.19561234e-02 ...  1.85126532e-02
   -1.31071806e-01 -2.30656326e-01]
  ...
  [ 2.30483681e-01  1.16036333e-01  6.60178512e-02 ...  1.53649926e-01
    1.33699514e-02 -1.22850209e-01]
  [ 8.98660719e-02  1.30489081e-01  4.33537029e-02 ...  6.44744337e-02
   -4.20348868e-02  2.03585342e-01]
  [-2.52045915e-02  2.99085435e-02  1.18145794e-02 ...  2.17668582e-02
   -1.93075466e-04 -1.10596623e-02]]]
new_tokens [8.0000e+00 1.3477e+04 3.0000e+00 3.5460e+03 5.0000e+00 6.3560e+03
 2.4700e+02 7.9700e+02 4.0000e+00 2.6040e+03 5.0460e+03 2.9290e+03
 5.0000e+00]
text こんにちは、先生。最近手足のけいれんがあります。
 INFO t5_whisper_medical.py (290) : こんにちは、先生。最近手足のけいれんがあります。

from ailia-models-cpp.

kyakuno avatar kyakuno commented on May 29, 2024

出力トークンの期待値。

[[0]]
[[0 8]]
  1%|▏                                          | 2/384 [00:00<00:25, 15.02it/s][[    0     8 13477]]
[[    0     8 13477     3]]
  1%|▍                                          | 4/384 [00:00<00:23, 16.31it/s][[    0     8 13477     3  3546]]
[[    0     8 13477     3  3546     5]]
  2%|▋                                          | 6/384 [00:00<00:23, 16.42it/s][[    0     8 13477     3  3546     5  6356]]
[[    0     8 13477     3  3546     5  6356   247]]
  2%|▉                                          | 8/384 [00:00<00:24, 15.51it/s][[    0     8 13477     3  3546     5  6356   247   797]]
[[    0     8 13477     3  3546     5  6356   247   797     4]]
  3%|█                                         | 10/384 [00:00<00:26, 14.22it/s][[    0     8 13477     3  3546     5  6356   247   797     4  2604]]
[[    0     8 13477     3  3546     5  6356   247   797     4  2604  5046]]
  3%|█▎                                        | 12/384 [00:00<00:28, 13.16it/s][[    0     8 13477     3  3546     5  6356   247   797     4  2604  5046
   2929]]
[[    0     8 13477     3  3546     5  6356   247   797     4  2604  5046
   2929     5]]

from ailia-models-cpp.

kyakuno avatar kyakuno commented on May 29, 2024

CPP版の出力。

kyakuno@mbakk t5_whisper_medical % ./t5_whisper_medical -e 1
env_id : 0 type : 0 name : CPU
env_id : 1 type : 1 name : CPU-AppleAccelerate
env_id : 2 type : 2 name : MPSDNN-Apple M2 (Warning : FP16 backend is not worked this model)
selected env name : CPU-AppleAccelerate
Input : 医療用語の訂正: こんにちは、先生。最近手足の経連があります。
Input Tokens :
8 1551 3155 4 27421 42 8 13477 3 3546 5 6356 247 797 4 970 921 2929 5 1 
Output : こんにちは、先生。最近手足のけいれんがあります。
Output Tokens :
1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 1227969608 
Program finished successfully.

from ailia-models-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.