.bat file to launch llamafile --server with yaml config file

Can someone please provide me guidance in writing a .bat file that launches a llamafile --server that also include a config.yaml file? I’ve been, unsuccessfully trying to figure this out for two day. Nothing seems to work. <y last attempt, out of 25-30 tries was:
@echo off
REM Executes the Llama-3.2-1B-Instruct.Q6_K.llamafile with the --server flag
\AI-SmartDrive-2025\clc_programs\Llama-3.2-1B-Instruct.Q6_K\Llama-3.2-1B-Instruct.Q6_K.llamafile --server
REM Executes the config.yaml file
\AI-SmartDrive-2025\clc_programs\Llama-3.2-1B-Instruct.Q6_K\config.yaml

Guess I am too dumb to figure it out.

1 Like

On Windows, only executable files with extensions such as .exe or .bat, or commands with built-in shells, can be executed by .bat (CMD).

If you’re on Windows, rename the file by adding “.exe” on the end.

The other problem is that there is no way to execute .yaml. It would be good if I could specify config.yaml as an option for the executable file, but I can’t find it…
It might be faster to write a shell script for Linux in a WSL2 environment or something.

Hi John!

Thank you for responding to my question. I sincerely appreciated it. Your feedback and suggested readings were wonderful. I am trying to create a formal process I can pass on to parents and teachers of K-12 students with learning disabilities. Many of their current supports are being taken away from them as a result of the activities and decisions of our current administration. Parents are desperate for ways to help their children because, for many reasons, their school systems are unable/unwilling to provide the necessary supports. Many students come from low-income households that can not afford high-speed internet connectivity at home. Teaching parents, dealing with situation can benefit from having access to AI educational support resources. I am hopeful that Llamafiles can help to solve this digital divide.

Thanks, again, for going out of your way to respond to my question. You are the first expert that ever did so. I no longer feel like I am only able to make the sound of one hand clapping.

If you send me your PayPal email I’d like to buy you lunch for your kindness and thoughtfulness.

Sincerely,

Steve