From 4bbb642f4e963b63a6b5ed0e4cffb1874222e635 Mon Sep 17 00:00:00 2001 From: danemadsen Date: Tue, 4 Feb 2025 09:23:40 +1000 Subject: [PATCH] rename --- README.md | 4 ++-- android/build.gradle | 4 ++-- android/settings.gradle | 2 +- android/src/main/AndroidManifest.xml | 2 +- example/README.md | 4 ++-- example/android/app/build.gradle | 4 ++-- example/android/app/src/main/AndroidManifest.xml | 2 +- .../com/example/maid_llm_example/MainActivity.kt | 2 +- example/ios/Runner/Info.plist | 2 +- example/lib/main.dart | 2 +- example/linux/CMakeLists.txt | 4 ++-- example/linux/flutter/generated_plugins.cmake | 2 +- example/linux/my_application.cc | 4 ++-- example/macos/Podfile.lock | 10 +++++----- example/macos/Runner.xcodeproj/project.pbxproj | 12 ++++++------ .../xcshareddata/xcschemes/Runner.xcscheme | 8 ++++---- example/macos/Runner/Configs/AppInfo.xcconfig | 2 +- example/pubspec.lock | 2 +- example/pubspec.yaml | 11 +++-------- example/windows/CMakeLists.txt | 4 ++-- example/windows/flutter/generated_plugins.cmake | 2 +- example/windows/runner/Runner.rc | 8 ++++---- example/windows/runner/main.cpp | 2 +- ios/lcpp.podspec | 6 +++--- lib/src/bindings.dart | 6 +++--- lib/src/chat_message.dart | 2 +- lib/src/context_params.dart | 2 +- lib/src/llama_cpp.dart | 12 ++++++------ lib/src/model_params.dart | 2 +- lib/src/sampling_params.dart | 2 +- linux/CMakeLists.txt | 2 +- macos/lcpp.podspec | 6 +++--- pubspec.yaml | 8 ++++---- windows/CMakeLists.txt | 2 +- 34 files changed, 72 insertions(+), 77 deletions(-) diff --git a/README.md b/README.md index b57f277..c235c3f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# lcpp +# llama -lcpp is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid) +llama is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid) diff --git a/android/build.gradle b/android/build.gradle index a540f7a..2cafe17 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,6 @@ // The Android Gradle Plugin builds the native code with the Android NDK. -group 'com.example.lcpp' +group 'com.example.llama' version '1.0' buildscript { @@ -26,7 +26,7 @@ apply plugin: 'com.android.library' android { if (project.android.hasProperty("namespace")) { - namespace 'com.example.lcpp' + namespace 'com.example.llama' } // Bumping the plugin compileSdk version requires all clients of this plugin diff --git a/android/settings.gradle b/android/settings.gradle index 01c19ff..b78b2e5 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1 +1 @@ -rootProject.name = 'lcpp' +rootProject.name = 'llama' diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 823747d..3171765 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,3 +1,3 @@ + package="com.example.llama"> diff --git a/example/README.md b/example/README.md index 7349ee0..1fa022f 100644 --- a/example/README.md +++ b/example/README.md @@ -1,6 +1,6 @@ -# lcpp_example +# llama_example -Demonstrates how to use the lcpp plugin. +Demonstrates how to use the llama plugin. ## Getting Started diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 21736a8..b15a992 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -23,7 +23,7 @@ if (flutterVersionName == null) { } android { - namespace "com.example.lcpp_example" + namespace "com.example.llama_example" compileSdk flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -42,7 +42,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "com.example.lcpp_example" + applicationId "com.example.llama_example" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion 23 diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index dc1f68d..2441bfc 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - lcpp_example + llama_example CFBundlePackageType APPL CFBundleShortVersionString diff --git a/example/lib/main.dart b/example/lib/main.dart index 457cd44..f300fb9 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'dart:async'; import 'package:file_picker/file_picker.dart'; -import 'package:lcpp/lcpp.dart'; +import 'package:llama/llama.dart'; void main() { runApp(const MaidLlmApp()); diff --git a/example/linux/CMakeLists.txt b/example/linux/CMakeLists.txt index 0ca013e..f7af00c 100644 --- a/example/linux/CMakeLists.txt +++ b/example/linux/CMakeLists.txt @@ -4,10 +4,10 @@ project(runner LANGUAGES CXX) # The name of the executable created for the application. Change this to change # the on-disk name of your application. -set(BINARY_NAME "lcpp_example") +set(BINARY_NAME "llama_example") # The unique GTK application identifier for this application. See: # https://wiki.gnome.org/HowDoI/ChooseApplicationID -set(APPLICATION_ID "com.example.lcpp") +set(APPLICATION_ID "com.example.llama") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake. diff --git a/example/linux/flutter/generated_plugins.cmake b/example/linux/flutter/generated_plugins.cmake index 06a6431..123f495 100644 --- a/example/linux/flutter/generated_plugins.cmake +++ b/example/linux/flutter/generated_plugins.cmake @@ -6,7 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST - lcpp + llama ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/example/linux/my_application.cc b/example/linux/my_application.cc index 54f0d94..2cdbb7a 100644 --- a/example/linux/my_application.cc +++ b/example/linux/my_application.cc @@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) { if (use_header_bar) { GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new()); gtk_widget_show(GTK_WIDGET(header_bar)); - gtk_header_bar_set_title(header_bar, "lcpp_example"); + gtk_header_bar_set_title(header_bar, "llama_example"); gtk_header_bar_set_show_close_button(header_bar, TRUE); gtk_window_set_titlebar(window, GTK_WIDGET(header_bar)); } else { - gtk_window_set_title(window, "lcpp_example"); + gtk_window_set_title(window, "llama_example"); } gtk_window_set_default_size(window, 1280, 720); diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock index 2084941..6561d37 100644 --- a/example/macos/Podfile.lock +++ b/example/macos/Podfile.lock @@ -2,26 +2,26 @@ PODS: - file_picker (0.0.1): - FlutterMacOS - FlutterMacOS (1.0.0) - - lcpp (0.0.1): + - llama (0.0.1): - FlutterMacOS DEPENDENCIES: - file_picker (from `Flutter/ephemeral/.symlinks/plugins/file_picker/macos`) - FlutterMacOS (from `Flutter/ephemeral`) - - lcpp (from `Flutter/ephemeral/.symlinks/plugins/lcpp/macos`) + - llama (from `Flutter/ephemeral/.symlinks/plugins/llama/macos`) EXTERNAL SOURCES: file_picker: :path: Flutter/ephemeral/.symlinks/plugins/file_picker/macos FlutterMacOS: :path: Flutter/ephemeral - lcpp: - :path: Flutter/ephemeral/.symlinks/plugins/lcpp/macos + llama: + :path: Flutter/ephemeral/.symlinks/plugins/llama/macos SPEC CHECKSUMS: file_picker: e716a70a9fe5fd9e09ebc922d7541464289443af FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - lcpp: 00b58ece86653604067b1024980311c938f15cb7 + llama: 1929932d9096ccd647e8158f0aaf02f5085bf6a1 PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3 diff --git a/example/macos/Runner.xcodeproj/project.pbxproj b/example/macos/Runner.xcodeproj/project.pbxproj index 2815ff2..5ceab27 100644 --- a/example/macos/Runner.xcodeproj/project.pbxproj +++ b/example/macos/Runner.xcodeproj/project.pbxproj @@ -67,7 +67,7 @@ 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; - 33CC10ED2044A3C60003C045 /* lcpp_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = lcpp_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 33CC10ED2044A3C60003C045 /* llama_example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = llama_example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; @@ -144,7 +144,7 @@ 33CC10EE2044A3C60003C045 /* Products */ = { isa = PBXGroup; children = ( - 33CC10ED2044A3C60003C045 /* lcpp_example.app */, + 33CC10ED2044A3C60003C045 /* llama_example.app */, 331C80D5294CF71000263BE5 /* RunnerTests.xctest */, ); name = Products; @@ -249,7 +249,7 @@ ); name = Runner; productName = Runner; - productReference = 33CC10ED2044A3C60003C045 /* lcpp_example.app */; + productReference = 33CC10ED2044A3C60003C045 /* llama_example.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -482,7 +482,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.maidLlmExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/lcpp_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/lcpp_example"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/llama_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/llama_example"; }; name = Debug; }; @@ -497,7 +497,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.maidLlmExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/lcpp_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/lcpp_example"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/llama_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/llama_example"; }; name = Release; }; @@ -512,7 +512,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.maidLlmExample.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/lcpp_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/lcpp_example"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/llama_example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/llama_example"; }; name = Profile; }; diff --git a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index fb2efc8..47c75f7 100644 --- a/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -15,7 +15,7 @@ @@ -31,7 +31,7 @@ @@ -65,7 +65,7 @@ @@ -82,7 +82,7 @@ diff --git a/example/macos/Runner/Configs/AppInfo.xcconfig b/example/macos/Runner/Configs/AppInfo.xcconfig index bb8842a..8f05256 100644 --- a/example/macos/Runner/Configs/AppInfo.xcconfig +++ b/example/macos/Runner/Configs/AppInfo.xcconfig @@ -5,7 +5,7 @@ // 'flutter create' template. // The application's name. By default this is also the title of the Flutter window. -PRODUCT_NAME = lcpp_example +PRODUCT_NAME = llama_example // The application's bundle identifier PRODUCT_BUNDLE_IDENTIFIER = com.example.maidLlmExample diff --git a/example/pubspec.lock b/example/pubspec.lock index 6de5423..1878fe9 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -112,7 +112,7 @@ packages: description: flutter source: sdk version: "0.0.0" - lcpp: + llama: dependency: "direct main" description: path: ".." diff --git a/example/pubspec.yaml b/example/pubspec.yaml index c5d28b4..7d28339 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,5 +1,5 @@ -name: lcpp_example -description: "Demonstrates how to use the lcpp plugin." +name: llama_example +description: "Demonstrates how to use the llama plugin." # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev @@ -31,12 +31,7 @@ dependencies: flutter: sdk: flutter - lcpp: - # When depending on this package from a real application you should use: - # lcpp: ^x.y.z - # See https://dart.dev/tools/pub/dependencies#version-constraints - # The example app is bundled with the plugin so we use a path dependency on - # the parent directory to use the current plugin's version. + llama: path: ../ # The following adds the Cupertino Icons font to your application. diff --git a/example/windows/CMakeLists.txt b/example/windows/CMakeLists.txt index 16ccef2..afdc000 100644 --- a/example/windows/CMakeLists.txt +++ b/example/windows/CMakeLists.txt @@ -1,10 +1,10 @@ # Project-level configuration. cmake_minimum_required(VERSION 3.14) -project(lcpp_example LANGUAGES CXX) +project(llama_example LANGUAGES CXX) # The name of the executable created for the application. Change this to change # the on-disk name of your application. -set(BINARY_NAME "lcpp_example") +set(BINARY_NAME "llama_example") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake. diff --git a/example/windows/flutter/generated_plugins.cmake b/example/windows/flutter/generated_plugins.cmake index 3bc13b6..808a3f2 100644 --- a/example/windows/flutter/generated_plugins.cmake +++ b/example/windows/flutter/generated_plugins.cmake @@ -6,7 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST ) list(APPEND FLUTTER_FFI_PLUGIN_LIST - lcpp + llama ) set(PLUGIN_BUNDLED_LIBRARIES) diff --git a/example/windows/runner/Runner.rc b/example/windows/runner/Runner.rc index 0c0eaf6..e876c77 100644 --- a/example/windows/runner/Runner.rc +++ b/example/windows/runner/Runner.rc @@ -90,12 +90,12 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "com.example" "\0" - VALUE "FileDescription", "lcpp_example" "\0" + VALUE "FileDescription", "llama_example" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" - VALUE "InternalName", "lcpp_example" "\0" + VALUE "InternalName", "llama_example" "\0" VALUE "LegalCopyright", "Copyright (C) 2024 com.example. All rights reserved." "\0" - VALUE "OriginalFilename", "lcpp_example.exe" "\0" - VALUE "ProductName", "lcpp_example" "\0" + VALUE "OriginalFilename", "llama_example.exe" "\0" + VALUE "ProductName", "llama_example" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" END END diff --git a/example/windows/runner/main.cpp b/example/windows/runner/main.cpp index c9d43f7..53f0c57 100644 --- a/example/windows/runner/main.cpp +++ b/example/windows/runner/main.cpp @@ -27,7 +27,7 @@ int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FlutterWindow window(project); Win32Window::Point origin(10, 10); Win32Window::Size size(1280, 720); - if (!window.Create(L"lcpp_example", origin, size)) { + if (!window.Create(L"llama_example", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true); diff --git a/ios/lcpp.podspec b/ios/lcpp.podspec index cf2388d..2c921c0 100644 --- a/ios/lcpp.podspec +++ b/ios/lcpp.podspec @@ -1,15 +1,15 @@ # # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint lcpp.podspec` to validate before publishing. +# Run `pod lib lint llama.podspec` to validate before publishing. # Pod::Spec.new do |s| - s.name = 'lcpp' + s.name = 'llama' s.version = '0.0.1' s.summary = 'A Flutter FFI plugin for interfacing with llama_cpp.' s.description = <<-DESC A new Flutter FFI plugin project. DESC - s.homepage = 'https://github.com/Mobile-Artificial-Intelligence/dart_lcpp' + s.homepage = 'https://github.com/Mobile-Artificial-Intelligence/dart_llama' s.license = { :file => '../LICENSE' } s.author = { 'Dane Madsen' => 'dane_madsen@hotmail.com' } s.dependency 'Flutter' diff --git a/lib/src/bindings.dart b/lib/src/bindings.dart index 1b1ef7d..4038af6 100644 --- a/lib/src/bindings.dart +++ b/lib/src/bindings.dart @@ -5,16 +5,16 @@ import 'dart:ffi' as ffi; /// llama.cpp binding -class lcpp { +class llama { /// Holds the symbol lookup function. final ffi.Pointer Function(String symbolName) _lookup; /// The symbols are looked up in [dynamicLibrary]. - lcpp(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; + llama(ffi.DynamicLibrary dynamicLibrary) : _lookup = dynamicLibrary.lookup; /// The symbols are looked up with [lookup]. - lcpp.fromLookup( + llama.fromLookup( ffi.Pointer Function(String symbolName) lookup) : _lookup = lookup; diff --git a/lib/src/chat_message.dart b/lib/src/chat_message.dart index 79004c1..347741f 100644 --- a/lib/src/chat_message.dart +++ b/lib/src/chat_message.dart @@ -1,4 +1,4 @@ -part of '../lcpp.dart'; +part of '../llama.dart'; class ChatMessage { final String role; diff --git a/lib/src/context_params.dart b/lib/src/context_params.dart index e4a3e85..7c05031 100644 --- a/lib/src/context_params.dart +++ b/lib/src/context_params.dart @@ -1,5 +1,5 @@ // ignore_for_file: constant_identifier_names -part of '../lcpp.dart'; +part of '../llama.dart'; class ContextParams { // text context, 0 = from model diff --git a/lib/src/llama_cpp.dart b/lib/src/llama_cpp.dart index 71f4250..50a1911 100644 --- a/lib/src/llama_cpp.dart +++ b/lib/src/llama_cpp.dart @@ -1,4 +1,4 @@ -part of '../lcpp.dart'; +part of '../llama.dart'; typedef InitIsolateArguments = ({ String modelPath, @@ -23,7 +23,7 @@ class LlamaCPP { static Completer? _completer; static late SendPort _sendPort; - static lcpp? _lib; + static llama? _lib; static ffi.Pointer? _model; static ffi.Pointer? _context; static ffi.Pointer? _sampler; @@ -35,16 +35,16 @@ class LlamaCPP { /// Getter for the Llama library. /// /// Loads the library based on the current platform. - static lcpp get lib { + static llama get lib { if (_lib == null) { if (Platform.isWindows) { - _lib = lcpp(ffi.DynamicLibrary.open('llama.dll')); + _lib = llama(ffi.DynamicLibrary.open('llama.dll')); } else if (Platform.isLinux || Platform.isAndroid) { - _lib = lcpp(ffi.DynamicLibrary.open('libllama.so')); + _lib = llama(ffi.DynamicLibrary.open('libllama.so')); } else if (Platform.isMacOS || Platform.isIOS) { - _lib = lcpp(ffi.DynamicLibrary.open('lcpp.framework/lcpp')); + _lib = llama(ffi.DynamicLibrary.open('llama.framework/llama')); } else { throw Exception('Unsupported platform'); diff --git a/lib/src/model_params.dart b/lib/src/model_params.dart index 8d3e199..f541802 100644 --- a/lib/src/model_params.dart +++ b/lib/src/model_params.dart @@ -1,4 +1,4 @@ -part of '../lcpp.dart'; +part of '../llama.dart'; typedef OnProgressCallback = bool Function(double progress); diff --git a/lib/src/sampling_params.dart b/lib/src/sampling_params.dart index d846e98..a6875bc 100644 --- a/lib/src/sampling_params.dart +++ b/lib/src/sampling_params.dart @@ -1,4 +1,4 @@ -part of '../lcpp.dart'; +part of '../llama.dart'; typedef PArgs = ({ double p, diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index 0befcb1..8658895 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.10) # Project-level configuration. -set(PROJECT_NAME "lcpp") +set(PROJECT_NAME "llama") project(${PROJECT_NAME} LANGUAGES CXX) set(LLAMA_CPP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../src/llama_cpp) diff --git a/macos/lcpp.podspec b/macos/lcpp.podspec index 8a2ad0d..34b719a 100644 --- a/macos/lcpp.podspec +++ b/macos/lcpp.podspec @@ -1,15 +1,15 @@ # # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. -# Run `pod lib lint lcpp.podspec` to validate before publishing. +# Run `pod lib lint llama.podspec` to validate before publishing. # Pod::Spec.new do |s| - s.name = 'lcpp' + s.name = 'llama' s.version = '0.0.1' s.summary = 'A Flutter FFI plugin for interfacing with llama_cpp.' s.description = <<-DESC A new Flutter FFI plugin project. DESC - s.homepage = 'https://github.com/Mobile-Artificial-Intelligence/dart_lcpp' + s.homepage = 'https://github.com/Mobile-Artificial-Intelligence/dart_llama' s.license = { :file => '../LICENSE' } s.author = { 'Dane Madsen' => 'dane_madsen@hotmail.com' } s.dependency 'FlutterMacOS' diff --git a/pubspec.yaml b/pubspec.yaml index e4353c6..835a5c2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ -name: lcpp -description: "lcpp is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid)" +name: llama +description: "llama is a dart implementation of llama.cpp used by the mobile artificial intelligence distribution (maid)" version: 1.0.1 -homepage: "https://github.com/Mobile-Artificial-Intelligence/dart_lcpp" +homepage: "https://github.com/Mobile-Artificial-Intelligence/dart_llama" environment: sdk: '>=3.3.0 <4.0.0' @@ -19,7 +19,7 @@ dev_dependencies: flutter_lints: ^3.0.0 ffigen: - name: 'lcpp' + name: 'llama' description: 'llama.cpp binding' output: 'lib/src/bindings.dart' ignore-source-errors: true diff --git a/windows/CMakeLists.txt b/windows/CMakeLists.txt index f42b727..62ec2ee 100644 --- a/windows/CMakeLists.txt +++ b/windows/CMakeLists.txt @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.10) # Project-level configuration. -set(PROJECT_NAME "lcpp") +set(PROJECT_NAME "llama") project(${PROJECT_NAME} LANGUAGES CXX) set(LLAMA_CPP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../src/llama_cpp)