... pXml )
WindowsDeleteString( pString )
// Define compact XML (no image or inline image)
cXml := ;
'<toast>'+;
'<visual>'+;
'<binding template="ToastGeneric">'+;
iif( Empty( cImageFileName ), '', '<image src="' + cImageFileName + '"/>' ) + ;
'<text>' + cFirstLine + '</text>'+;
'<text ...
Search found 354 matches: template
Searched query: template
- Mon Feb 10, 2025 9:17 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ajustar tamaño caja toast
- Replies: 7
- Views: 1363
- Mon Feb 10, 2025 11:48 am
- Forum: latest AI news
- Topic: reproduced DeepSeek R1-Zero for < $30 !!!
- Replies: 9
- Views: 12275
Re: reproduced DeepSeek R1-Zero for < $30 !!!
... 1024,
)
def generate_response(question):
"""Genera una respuesta basada en la pregunta del usuario."""
input_text = tokenizer.apply_chat_template(
[
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": question},
],
tokenize=False,
add_generation_prompt=True ...
)
def generate_response(question):
"""Genera una respuesta basada en la pregunta del usuario."""
input_text = tokenizer.apply_chat_template(
[
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": question},
],
tokenize=False,
add_generation_prompt=True ...
- Sat Feb 08, 2025 5:11 pm
- Forum: latest AI news
- Topic: Ollama Modelfile
- Replies: 1
- Views: 870
Ollama Modelfile
... modelfile
ollama show llama2:latest --modelfile > myllama2.modelfile
Use any text or code 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 ...
ollama show llama2:latest --modelfile > myllama2.modelfile
Use any text or code 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 ...
- Sat Feb 08, 2025 10:45 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ajustar tamaño caja toast
- Replies: 7
- Views: 1363
Re: Ajustar tamaño caja toast
... pXml )
WindowsDeleteString( pString )
// Define compact XML (no image or inline image)
cXml := ;
'<toast>'+;
'<visual>'+;
'<binding template="ToastGeneric">'+;
iif( Empty( cImageFileName ), '', '<image src="' + cImageFileName + '"/>' ) + ;
'<text>' + cFirstLine + '</text>'+;
'<text ...
WindowsDeleteString( pString )
// Define compact XML (no image or inline image)
cXml := ;
'<toast>'+;
'<visual>'+;
'<binding template="ToastGeneric">'+;
iif( Empty( cImageFileName ), '', '<image src="' + cImageFileName + '"/>' ) + ;
'<text>' + cFirstLine + '</text>'+;
'<text ...
- Fri Feb 07, 2025 9:59 pm
- Forum: latest AI news
- Topic: reproduced DeepSeek R1-Zero for < $30 !!!
- Replies: 9
- Views: 12275
Re: reproduced DeepSeek R1-Zero for < $30 !!!
... int_reward_func,
correctness_reward_func,
],
args = training_args,
train_dataset = dataset,
)
trainer.train()
text = tokenizer.apply_chat_template([
{"role" : "user", "content" : "How many r's are in strawberry?"},
], tokenize = False, add_generation_prompt = True)
from vllm import ...
correctness_reward_func,
],
args = training_args,
train_dataset = dataset,
)
trainer.train()
text = tokenizer.apply_chat_template([
{"role" : "user", "content" : "How many r's are in strawberry?"},
], tokenize = False, add_generation_prompt = True)
from vllm import ...
- Wed Feb 05, 2025 3:51 am
- Forum: latest AI news
- Topic: reproduced DeepSeek R1-Zero for < $30 !!!
- Replies: 9
- Views: 12275
Re: reproduced DeepSeek R1-Zero for < $30 !!!
... 3 = 1 </answer>."
},
{
"role": "assistant",
"content": "Let me solve this step by step.\n<think>"
}]
return {"prompt": tokenizer.apply_chat_template(r1_prefix, tokenize=False, continue_final_message=True), "target": target}
# convert our dataset to the r1 prompt
dataset = dataset.map(lambda x ...
},
{
"role": "assistant",
"content": "Let me solve this step by step.\n<think>"
}]
return {"prompt": tokenizer.apply_chat_template(r1_prefix, tokenize=False, continue_final_message=True), "target": target}
# convert our dataset to the r1 prompt
dataset = dataset.map(lambda x ...
- Fri Jan 10, 2025 1:52 pm
- Forum: Utilities / Utilidades
- Topic: These forums backup database / Backup de estos foros
- Replies: 3
- Views: 994
Re: These forums backup database / Backup de estos foros
... 50. phpbb_styles_imageset_data
imageset_id (mediumint)
image_name (varchar)
DBF Equivalent:
imageset_id N(5)
image_name C(100)
51. phpbb_styles_template
template_id (mediumint)
template_name (varchar)
DBF Equivalent:
template_id N(5)
template_name C(100)
52. phpbb_styles_template_data
template_id ...
imageset_id (mediumint)
image_name (varchar)
DBF Equivalent:
imageset_id N(5)
image_name C(100)
51. phpbb_styles_template
template_id (mediumint)
template_name (varchar)
DBF Equivalent:
template_id N(5)
template_name C(100)
52. phpbb_styles_template_data
template_id ...
- Fri Jan 10, 2025 1:39 pm
- Forum: Utilities / Utilidades
- Topic: These forums backup database / Backup de estos foros
- Replies: 3
- Views: 994
Re: These forums backup database / Backup de estos foros
... por los estilos del foro.
phpbb_styles_imageset_data: Contiene datos específicos sobre las imágenes de los conjuntos de estilos.
phpbb_styles_template: Almacena las plantillas utilizadas por los estilos del foro.
phpbb_styles_template_data: Contiene datos específicos sobre las plantillas de los ...
phpbb_styles_imageset_data: Contiene datos específicos sobre las imágenes de los conjuntos de estilos.
phpbb_styles_template: Almacena las plantillas utilizadas por los estilos del foro.
phpbb_styles_template_data: Contiene datos específicos sobre las plantillas de los ...
- Thu Sep 19, 2024 10:23 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Webview 2 + Html + ChatGPT !
- Replies: 60
- Views: 11610
Webview 2 + Html + ChatGPT !
... font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #8b93bb; /* Beige claro */
}
.dashboard {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.ventana {
background-color: white;
border-radius: 8px;
padding: 15px;
box ...
margin: 0;
padding: 20px;
background-color: #8b93bb; /* Beige claro */
}
.dashboard {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.ventana {
background-color: white;
border-radius: 8px;
padding: 15px;
box ...
- Tue Sep 03, 2024 12:57 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to Work with FIVEWIN and Web Side by Side - An Easy Way
- Replies: 9
- Views: 2807
Re: How to Work with FIVEWIN and Web Side by Side - An Easy Way
... fw desktop application, it is the place where all informations about the sites are stored: sites, pages, contents, menus, documents, html templates, css files and so on.
It is multi-site so a single customer can have multiple sites sharing the same dbf's. As an example: the official site ...
It is multi-site so a single customer can have multiple sites sharing the same dbf's. As an example: the official site ...
- Sun Jul 21, 2024 7:17 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to design programe for jewelry order ? (K.A. Rao)
- Replies: 2
- Views: 602
Re: How to design programe for jewelry order ? (K.A. Rao)
... prg was programmed for you, then I would - assuming you are a standard Fivewin user - start with a simpler code for deposit management - a simple CRUD program.
The yunus.prg code is ultra high-end and serves as a template. But the code assumes that you are a power Fivewin user.
Best regards,
Otto
The yunus.prg code is ultra high-end and serves as a template. But the code assumes that you are a power Fivewin user.
Best regards,
Otto
- Fri May 03, 2024 4:42 pm
- Forum: mod_harbour
- Topic: Dynamic Table Filter Control
- Replies: 0
- Views: 1766
Dynamic Table Filter Control
... align-items: center;
margin: 0;
padding: 0;
}
.filter-section label {
margin: 0;
padding: 0;
}
.grid-container {
display: grid;
grid-template-columns: min-content auto;
column-gap: 10px;
align-items: center;
}
.inputs-container {
display: flex;
gap: 10px;
}
</style>
</head ...
margin: 0;
padding: 0;
}
.filter-section label {
margin: 0;
padding: 0;
}
.grid-container {
display: grid;
grid-template-columns: min-content auto;
column-gap: 10px;
align-items: center;
}
.inputs-container {
display: flex;
gap: 10px;
}
</style>
</head ...
- Sat Apr 20, 2024 10:33 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowseWeb - Work in Progress
- Replies: 4
- Views: 848
xbrowseWeb - Work in Progress
... module. I've decided to avoid using pre-made components for web development (like web servers or webview2) as much as possible. I now have a template for consistent navigation in my web programs. Here, I also host the xbrowseWeb module. Another principle I follow is to keep the source code as ...
- Fri Mar 01, 2024 11:42 pm
- Forum: mod_harbour
- Topic: XAMPP through PortableApps.com or Server2Go
- Replies: 13
- Views: 16173
Re: XAMPP through PortableApps.com or Server2Go
Charly,
can you tell me what to use with the build in mod harbour version for
TEMPLATE PARAMS
ENDTEXT
xCommand is not working for me.
Best regards,
Otto
can you tell me what to use with the build in mod harbour version for
TEMPLATE PARAMS
ENDTEXT
xCommand is not working for me.
Best regards,
Otto
- Thu Feb 29, 2024 3:06 pm
- Forum: mod_harbour
- Topic: XAMPP through PortableApps.com or Server2Go
- Replies: 13
- Views: 16173
Re: XAMPP through PortableApps.com or Server2Go
Otto,
For me, it's practical that I can simply hide the TEMPLATE /ENDTEXT and then edit and test the code with the FIVEWIN development environment (much xbrowse :-) ).
If you want to work directly against html it is very easy. You go to RX Menu->Config->enable path \html, save changes and ...
For me, it's practical that I can simply hide the TEMPLATE /ENDTEXT and then edit and test the code with the FIVEWIN development environment (much xbrowse :-) ).
If you want to work directly against html it is very easy. You go to RX Menu->Config->enable path \html, save changes and ...