Using Microsoft AI Phi-2 from FWH

jhnsnlb
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Post by jhnsnlb »

Antonio

funciona com xharbour?

Code: Select all | Expand

Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20221118)
Copyright 1999-2022, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'test.prg' and generating preprocessed output to 'test.ppo'...
Generating C source output to 'test.c'...
Done.
Lines 27, Functions/Procedures 2, pCodes 279
Embarcadero C++ 7.40 for Win32 Copyright (c) 1993-2018 Embarcadero Technologies, Inc.
test.c:
Error E2451 test.prg 45: Undefined symbol 'HB_LONGLONG' in function HB_FUN_CALLBACK
Error E2293 test.prg 45: ) expected in function HB_FUN_CALLBACK
*** 2 errors in Compile ***
* Linking errors *
FWH2008 SQLRDD xHarbour
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Using Microsoft AI Phi-2 from FWH

Post by Antonio Linares »

#if defined( HB_OS_WIN ) && ! defined( __GNUC__ )
typedef __int64 HB_LONGLONG;
typedef unsigned __int64 HB_ULONGLONG;
#else
typedef signed long long HB_LONGLONG;
typedef unsigned long long HB_ULONGLONG;
#endif
Prueba a usar __int64 ó long long en vez de HB_LONGLONG que es lo que no te encuentra en xHarbour
regards, saludos

Antonio Linares
www.fivetechsoft.com
jhnsnlb
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Post by jhnsnlb »

antonio

o erro não acontece mais, inclui:
#ifndef HB_LONGLONG
#define HB_LONGLONG long
#define hb_storvnll hb_stornl
#endif

agora o erro eh outro ao clicar em start
DLL FUNCTION Llama( cModel AS LPSTR, cPrompt AS LPSTR, pFunc AS PTR ) AS VOID PASCAL LIB "llama64.dll"
Image
FWH2008 SQLRDD xHarbour
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Using Microsoft AI Phi-2 from FWH

Post by Antonio Linares »

Estás construyendo el ejemplo en 64 bits ?

La DLL es de 64 bits y requiere que tu aplicación sea de 64 bits

En 32 bits no funciona por el tamaño de los modelos de IA usados que tienen que cargarse en memoria
regards, saludos

Antonio Linares
www.fivetechsoft.com
jhnsnlb
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Post by jhnsnlb »

entendo:

Off Topic
onde posso comprar a nova versão do five (32bit), se poder falar o valor aqui.
a nova versão xBrowse esta preparado para sqlrdd(já que foi liberada)? (sempre tive problema fazendo correcões)
FWH2008 SQLRDD xHarbour
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Using Microsoft AI Phi-2 from FWH

Post by Antonio Linares »

> onde posso comprar a nova versão do five (32bit), se poder falar o valor aqui.

El precio de la actualización son 170 euros y puedes pagarlos por PayPal a alinares@fivetechsoft.com ó desde nuestra web www.fivetechsoft.com usando tarjeta

> a nova versão xBrowse esta preparado para sqlrdd(já que foi liberada)? (sempre tive problema fazendo correcões)

voy a preguntarle a Mr. Rao y te respondo

gracias
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8728
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Using Microsoft AI Phi-2 from FWH

Post by Enrico Maria Giordano »

As I already wrote at the beginning of this thread, use LONGLONG instead of HB_LONGLONG.
Post Reply