Search found 45 matches: grad

Searched query: grad

by Antonio Linares
Fri Feb 07, 2025 9:59 pm
Forum: latest AI news
Topic: reproduced DeepSeek R1-Zero for < $30 !!!
Replies: 9
Views: 12267

Re: reproduced DeepSeek R1-Zero for < $30 !!!

pip install unsloth vllm
pip install --upgrade pillow
pip install git+https://github.com/huggingface/trl.git@e95f9fb74a3c3647b86f251b7e230ec51c64b72b
pip install diffusers
pip install triton

qwen_SFT_RL.py
from unsloth import FastLanguageModel, PatchFastRL
PatchFastRL("GRPO", FastLanguageModel ...
by Antonio Linares
Sat Jan 11, 2025 8:23 pm
Forum: Artificial Intelligence examples
Topic: CLASS Transformer
Replies: 2
Views: 806

Re: CLASS Transformer

... hb_MatrixSum(hb_MatrixMultiply(hb_MatrixSubstract(output, tgt), ;
hb_MatrixTranspose(hb_MatrixSubstract(output, tgt)))) / (10 * d_model)

// Gradiente de salida
d_output := hb_MatrixSubstract(output, tgt)

// Retropropagación y actualización de pesos
transformer:Backward(d_output ...
by Antonio Linares
Sat Jan 11, 2025 9:31 am
Forum: Artificial Intelligence examples
Topic: CLASS Transformer
Replies: 2
Views: 806

CLASS Transformer

... return

// Clase para la capa de Multi-Head Attention
CLASS MultiHeadAttention
DATA WQ, WK, WV, WO // Pesos de la capa
DATA dWQ, dWK, dWV, dWO // Gradientes de los pesos
DATA d_model, n_heads

METHOD New(d_model, n_heads)
METHOD ScaledDotProductAttention(Q, K, V)
METHOD Forward(query, key ...
by Silvio.Falconi
Sun Nov 06, 2022 8:12 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse gradient cell colors
Replies: 5
Views: 465

Re: xbrowse gradient cell colors

we can set a gradient color for each cell ?

oCol:bClrStd := { || { <clrtext>, <aGradient> } }

Nages,
I tried to make gradient cell color

https://i.postimg.cc/wBjJzNtj/grad.png

I made ( I have the colors on ini file and load it on a array)

aadd( aTmpColors, {aText[n], {aBack[n],aGradient[n ...
by Silvio.Falconi
Thu Apr 04, 2019 8:39 am
Forum: FiveWin for Harbour/xHarbour
Topic: Ribbonbar on w7 and 10
Replies: 4
Views: 1109

Re: Ribbonbar on w7 and 10

... aRbPrompts,,nOption,,nHeightRib, 26, , ,,,,,,,,.t.,)
::oRebar:l2016:=.t.
::oRebar:nRoundBox := 0

I see right the color of text of tabs but the grad of the RBBTN must be as when the ribbonbar is l2013

Perhaps there is ar error on TRBBTN class

When I use l2016 I see the color of rbbtn like 2007 ...
by ukoenig
Mon Sep 28, 2015 1:35 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image in window or dialog
Replies: 4
Views: 1212

Re: Image in window or dialog

... there are some tools You can test :
I think You will find the infos You need

A painter :

1. any background-combination of Window/Dialog
2. gradient-painter and Image / Brush selector
3. test of function SETGRADIENT ( Grad(B) = Brush or Grad(F) = Function )
4. zoom using Mouseclick, Buttons ...
by Silvio.Falconi
Fri Mar 27, 2015 8:52 am
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP COLOR GRAD
Replies: 2
Views: 565

Re: BTNBMP COLOR GRAD

thanks run ok
by FranciscoA
Thu Mar 26, 2015 3:33 pm
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP COLOR GRAD
Replies: 2
Views: 565

Re: BTNBMP COLOR GRAD

Try this: (following your code)
Local bClrGrad := &#123; | lPressed | If&#40; ! lPressed,;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; &#123; 1, nRGB&#40; 255, 255, 255 &#41;, nRGB&#40; 229, 233, 238 &#41; &#125; &#125;,;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123; &#123; 1, nRGB&#40; 229 ...
by Silvio.Falconi
Wed Mar 25, 2015 9:32 pm
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP COLOR GRAD
Replies: 2
Views: 565

BTNBMP COLOR GRAD

for the version 2007 I made this type of gradient

Local bClrGrad := { | lPressed | If( ! lPressed,;
{ { 1, nRGB( 253, 254, 255 ), nRGB( 179, 217, 255 ) } },;
{ { 1, nRGB( 179, 217, 255 ), nRGB( 253, 254, 255 ) } } ) }

but now I wish have a 2010 effect ...how I can modify the clrgrad ?
by Francisco Horta
Mon Aug 25, 2014 9:41 pm
Forum: FiveWin para Harbour/xHarbour
Topic: BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN
Replies: 6
Views: 1759

Re: BACKUP/RESTORE DATABASE MYSQL CON TDOLPHIN

... endif

*------------- Proceso de Generacion del DUMP de la base de datos
lEsc := .F.

cText := ""

DEFINE BRUSH oBrush FILE oApp:cDirBmps + "grad.jpg"

DEFINE DIALOG oDls RESOURCE "DLG_AVISO2" TITLE "Mi Respaldo ..." FONT ::oFont[2] BRUSH oBrush TRANSPARENT

REDEFINE SAY oSay PROMPT cText ID ...
by ukoenig
Sat Jun 28, 2014 10:03 pm
Forum: FiveWin for Harbour/xHarbour
Topic: TGRAPH Repopulate
Replies: 30
Views: 11558

Re: TGRAPH Repopulate

... between dialog- and graph :

// Dialog ( values for function-call )
// --------------------------------------
nDStyle := 2 // 1 = color / 2 = Gradient / 3 = Brush / 4 = Image
nDColorF := 16765559
nDColorB := LightColor( 175, nDColorF )
nDTxtColor := 255
nDGradpos := 0
LDDirect := .T.
cDBrush ...
by Adolfo
Wed Jun 11, 2014 3:13 pm
Forum: FiveWin para Harbour/xHarbour
Topic: cambiar el color a un boton?
Replies: 11
Views: 3081

Re: cambiar el color a un boton?

Goosfancito.

Utiliza una funcion externa para la asignacion del color, no dentro del bloque de codigo que define el GRAD.

Tal como lo habia hecho yo, llamando a validacolor() en el valid del Boton.
Si quieres guardar el color elegio, la variable COLOR1 la puedes traspasar a un DBf o un campo de una ...
by nageswaragunupudi
Fri Apr 26, 2013 4:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Say Transparent...problems - ( Gradient Partial )
Replies: 8
Views: 3743

Re: Say Transparent...problems - ( Gradient Partial )

Can we not simplify this program using the latest features like GRADIENT clause?
Also we can derive one combined aGrad array from multiple Grad arrays.
function TestGradPartial&#40;&#41;&nbsp; &nbsp;local oDlg, oFont, oBrush&nbsp; &nbsp;local aGrad&nbsp; &nbsp;aGrad := &#123; &#123; 0.10, RGB&#40 ...
by ukoenig
Sun Jul 15, 2012 10:51 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Image-Zoom Rel. 1.1 ( DOWNLOAD )
Replies: 1
Views: 833

Image-Zoom Rel. 1.1 ( DOWNLOAD )

Hello,

the promised Image-zoomer

1. any background-combination of Window/Dialog
2. gradient-painter and Image / Brush selector
3. test of function SETGRADIENT ( Grad(B) = Brush or Grad(F) = Function )
4. zoom using Mouseclick, Buttons or Tselex
5. create a PRG- and EXE-file
6. embedded PIXELFORMER ...
by ukoenig
Sat Jul 14, 2012 2:20 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Zoom in on Picture - Uwe
Replies: 8
Views: 3605

Re: Zoom in on Picture - Uwe

... Your application.
A straight connection to PIXELFORMER is included as well.
It makes it possible, to change something of the selected Image.

The gradient-array saved to var aDlgActual ( nDGradPos = Grad.-pos, nDColorF = 1. Color, nDColorB = 2. Color ) :
aDlgActual := { { nDGradPos, nDColorF ...