llamacpp_tools 0.2.0 copy "llamacpp_tools: ^0.2.0" to clipboard
llamacpp_tools: ^0.2.0 copied to clipboard

Tools to manage llama.cpp local setup (detecting, downloading or building, running).

example/example.dart

import 'package:llamacpp_tools/llamacpp_tools.dart';

Future<void> main() async {
  // Configure and start a server
  final config = LlamaserverConfig(
    modelPath: '/path/to/model.gguf',
    port: 8080,
    threads: 4,
  );

  final process = LlamaserverProcess(
    dir: (await LlamacppDir.detect('/path/to/llama-cpp'))!,
    config: config,
  );

  await process.start();
  print('Server running on port ${process.port}');
}
0
likes
160
points
150
downloads

Publisher

verified publisheragilord.com

Weekly Downloads

Tools to manage llama.cpp local setup (detecting, downloading or building, running).

Repository (GitHub)
View/report issues

Topics

#llamacpp #llama-cpp #cli #llm #tool

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, html, http, json_annotation, path, process_visor

More

Packages that depend on llamacpp_tools