Using Microsoft AI Phi-2 from FWH

Re: Using Microsoft AI Phi-2 from FWH

Postby jhnsnlb » Sat Dec 30, 2023 6:33 am

Antonio

funciona com xharbour?
Code: Select all  Expand view  RUN
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
jhnsnlb
 
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Postby Antonio Linares » Sat Dec 30, 2023 6:49 am

#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Using Microsoft AI Phi-2 from FWH

Postby jhnsnlb » Sat Dec 30, 2023 7:29 am

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
jhnsnlb
 
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Postby Antonio Linares » Sat Dec 30, 2023 7:36 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Using Microsoft AI Phi-2 from FWH

Postby jhnsnlb » Sat Dec 30, 2023 7:51 am

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
jhnsnlb
 
Posts: 7
Joined: Tue Nov 21, 2023 7:55 am

Re: Using Microsoft AI Phi-2 from FWH

Postby Antonio Linares » Sat Dec 30, 2023 8:18 am

> 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
Antonio Linares
Site Admin
 
Posts: 42117
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Using Microsoft AI Phi-2 from FWH

Postby Enrico Maria Giordano » Sat Dec 30, 2023 9:07 am

As I already wrote at the beginning of this thread, use LONGLONG instead of HB_LONGLONG.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 24 guests