Search found 354 matches: num

Searched query: num

by Antonio Linares
Mon Feb 10, 2025 11:48 am
Forum: latest AI news
Topic: reproduced DeepSeek R1-Zero for < $30 !!!
Replies: 9
Views: 12241

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

... model.save_pretrained_gguf( "folderName", tokenizer, quantization_method = "f16")

Modelfile
FROM ./unsloth.BF16.gguf
PARAMETER temperature 0.7
PARAMETER num_ctx 1024
SYSTEM """You are Mario from super mario bros acting as an assistant"""

ollama create myModel --file Modelfile

ollama run myModel
by Antonio Linares
Sat Feb 08, 2025 9:42 pm
Forum: latest AI news
Topic: Ollama Modelfile
Replies: 1
Views: 869

Re: Ollama Modelfile

... Requiere llama.cpp instalado
python3 llama.cpp/convert-hf-to-gguf.py merged_model/ \
--outtype f16 \
--outfile qwen2.5-3b-instruct-merged.gguf

Modelfile
FROM ./qwen2.5-3b-instruct-merged.gguf
PARAMETER temperature 0.8
PARAMETER num_ctx 1024

ollama create my-model -f Modelfile
ollama run my-model
by Antonio Linares
Sat Feb 08, 2025 5:11 pm
Forum: latest AI news
Topic: Ollama Modelfile
Replies: 1
Views: 869

Ollama Modelfile

... editing tool,open and modify the system prompt and template in the model file to suit your preferences or requirements:

PARAMETER temperature 1
PARAMETER num_ctx 4096
SYSTEM """You are Mario from super mario bros acting as an assistant"""

ollama create myllama2 --file myllama2.modelfile

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

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

... rank,
gpu_memory_utilization = 0.5, # Reduce if out of memory
)

model = FastLanguageModel.get_peft_model(
model,
r = lora_rank, # Choose any number > 0 ! Suggested 8, 16, 32, 64, 128
target_modules = [
"q_proj", "k_proj", "v_proj", "o_proj",
"gate_proj", "up_proj", "down_proj ...
by Antonio Linares
Wed Feb 05, 2025 3:51 am
Forum: latest AI news
Topic: reproduced DeepSeek R1-Zero for < $30 !!!
Replies: 9
Views: 12241

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

... Qwen/Qwen2.5-3B-Instruct")

# gemerate r1 prompt with a prefix for the model to already start with the thinking process
def generate_r1_prompt(numbers, target):
r1_prefix = [{
"role": "system",
"content": "You are a helpful assistant. You first thinks about the reasoning process in the mind ...
by Antonio Linares
Fri Jan 31, 2025 6:20 am
Forum: latest AI news
Topic: ollama increasing the context window
Replies: 2
Views: 1043

ollama increasing the context window

Ollama defaults to 2k context window. To increase it:

ollama run deepseek-r1:32b
/set parameter num_ctx 8192
/save deepseek-r1:32b-8k
ollama serve
by karinha
Tue Jan 28, 2025 1:24 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Color de fondo y texto a los campos TEXTO (MEMO)
Replies: 5
Views: 824

Re: Color de fondo y texto a los campos TEXTO (MEMO)

... SIZE 195,10
@ 16.8, 35 SAY "Set Century is on." OF oDlg SIZE 195,10
@ 17.3, 35 SAY "Set Epoch is set to 1919." OF oDlg SIZE 195,10
@ 18, 03 SAY " Num PICT '99' !>10 10" OF oDlg COLORS CLR_BLACK ,CLR_HCYAN BORDER SIZE 195,10
@ 19, 03 SAY " Memo No PICT 256" OF oDlg COLORS CLR_BLACK ,CLR_HCYAN ...
by Antonio Linares
Sat Jan 11, 2025 8:23 pm
Forum: Artificial Intelligence examples
Topic: CLASS Transformer
Replies: 2
Views: 806

Re: CLASS Transformer

#include "FiveWin.ch"

// Función principal para entrenar el Transformer
PROCEDURE Main()
LOCAL d_model := 128
LOCAL n_heads := 4
LOCAL num_layers := 1
LOCAL learning_rate := 0.001
LOCAL max_epochs := 100
LOCAL output, loss, d_output, epoch

// Generar datos de entrada y salida aleatorios ...
by Antonio Linares
Sat Jan 11, 2025 8:06 pm
Forum: Artificial Intelligence examples
Topic: CLASS Transformer
Replies: 2
Views: 806

Re: CLASS Transformer

#include "FiveWin.ch"

// Función principal para entrenar el Transformer
PROCEDURE Main()
LOCAL d_model := 128
LOCAL n_heads := 4
LOCAL num_layers := 1
LOCAL learning_rate := 0.01
LOCAL max_epochs := 100
LOCAL output, loss, d_output, epoch

// Generar datos de entrada y salida aleatorios ...
by Antonio Linares
Sat Jan 11, 2025 9:31 am
Forum: Artificial Intelligence examples
Topic: CLASS Transformer
Replies: 2
Views: 806

CLASS Transformer

... return hb_MatrixZero(::d_model, ::d_model) // Simplificación para no propagar más

// Clase para el Transformer
CLASS Transformer
DATA layers
DATA num_layers

METHOD New(num_layers, d_model, n_heads)
METHOD Forward(src, tgt)
METHOD Backward(d_output)
ENDCLASS

METHOD New(num_layers, d_model, n ...
by Willi Quintana
Wed Nov 27, 2024 9:54 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Mr RAO, ayuda, Store Procedure no funciona..
Replies: 3
Views: 951

Mr RAO, ayuda, Store Procedure no funciona..

... egreso), s1 = ( @nT1 := saldo ), ingreso_val = (ingreso * costo ), saldo_val = ( @nT2 + ingreso_val - egreso_val), s2 = (@nT2 := saldo_val ), kardex.num_movimiento = (@nT3 := @nT3 + 1), s1 = IF(s1 <= 0, 1, s1), precio_promedio = IF(s2 / s1 >= 0, s2 / s1,0), costo = IF(egreso > 0, If(precio_promedio ...
by Silvio.Falconi
Thu Oct 31, 2024 7:56 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse cell on two sections
Replies: 7
Views: 1734

Re: xbrowse cell on two sections

... 0, 0, 0 } }

XBROWSER aData SETUP TITLE "SetColsAsRows" xSetUp( oBrw )

return nil

function xSetUp( oBrw )

local n

oBrw:cHeaders := { "Name", "Num/Rit", "Rit", "Num/Rit", "Rit" }
AEval( oBrw:aCols, { |oCol,i| If( i % 2 = 0, ;
oCol:bClrStd := oCol:bClrSelFocus := { || { CLR_WHITE, CLR_HRED ...
by Silvio.Falconi
Fri Oct 11, 2024 9:33 am
Forum: FiveWin for Harbour/xHarbour
Topic: drawing a circle with FW_Box
Replies: 6
Views: 848

Re: drawing a circle with FW_Box

I resolved with

Image

oPrn:Ellipse(...)
by mauri.menabue
Sun Sep 15, 2024 9:39 pm
Forum: FiveWin for Harbour/xHarbour
Topic: slowness
Replies: 76
Views: 17133

Re: slowness

Hi Marco
not only how many tags but its formula for that single tag
e.g.: dtos( gio_drg) + str(gio_num,9) + str(gio_riga,3)
I often made too complex indexes which often slowed down the browse,
I would like to know if the slowness you see is on loop type : ' do while .. enddo '
or on a browse
Bye
by Antonio Linares
Sun Jun 02, 2024 8:02 am
Forum: FiveWin para CA-Clipper
Topic: Compilar Harbour modo Consola 64bits
Replies: 33
Views: 9874

Re: Compilar Harbour modo Consola 64bits

Estimado Esteban,

Buscando el primer símbolo que no te encuentra:
hbmysql.lib(mysql.obj) : error LNK2019: s¡mbolo externo server_mysql_num_rows sin resolver al que se hace referencia en la funci¢n HB_FUN_MYSQL_LIST_DBS

server_mysql_num_rows no aparece en ningún fichero de los que hay en https ...