You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Program.cs 1.3 kB

1234567891011121314151617181920212223242526272829
  1. using LLama.Native;
  2. using Spectre.Console;
  3. AnsiConsole.MarkupLineInterpolated(
  4. $"""
  5. [purple]======================================================================================================[/]
  6. __ __ ____ __
  7. /\ \ /\ \ /\ _`\ /\ \
  8. \ \ \ \ \ \ __ ___ ___ __ \ \,\L\_\\ \ \___ __ _ __ _____
  9. \ \ \ __\ \ \ __ /'__`\ /' __` __`\ /'__`\ \/_\__ \ \ \ _ `\ /'__`\ /\` __\/\ __`\
  10. \ \ \L\ \\ \ \L\ \/\ \L\.\_ /\ \/\ \/\ \ /\ \L\.\_ /\ \L\ \\ \ \ \ \ /\ \L\.\_\ \ \/ \ \ \L\ \
  11. \ \____/ \ \____/\ \__/.\_\\ \_\ \_\ \_\\ \__/.\_\\ `\____\\ \_\ \_\\ \__/.\_\\ \_\ \ \ ,__/
  12. \/___/ \/___/ \/__/\/_/ \/_/\/_/\/_/ \/__/\/_/ \/_____/ \/_/\/_/ \/__/\/_/ \/_/ \ \ \/
  13. [purple]=========================================================================================[/] \ \_\ [purple]======[/]
  14. \/_/
  15. """);
  16. // Configure native library to use
  17. NativeLibraryConfig
  18. .Instance
  19. .WithCuda()
  20. .WithLogs(LLamaLogLevel.Info);
  21. // Calling this method forces loading to occur now.
  22. NativeApi.llama_empty_call();
  23. await ExampleRunner.Run();