mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-29 08:41:22 +00:00 
			
		
		
		
	Updating documentation references for lookup-merge and export-lora
This commit is contained in:
		| @@ -3,7 +3,7 @@ | |||||||
| Apply LORA adapters to base model and export the resulting model. | Apply LORA adapters to base model and export the resulting model. | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
| usage: export-lora [options] | usage: llama-export-lora [options] | ||||||
|  |  | ||||||
| options: | options: | ||||||
|   -h, --help                         show this help message and exit |   -h, --help                         show this help message and exit | ||||||
|   | |||||||
| @@ -11,14 +11,14 @@ | |||||||
| #include <unordered_map> | #include <unordered_map> | ||||||
| #include <vector> | #include <vector> | ||||||
|  |  | ||||||
| static void print_usage() { | static void print_usage(char* argv0) { | ||||||
|     fprintf(stderr, "Merges multiple lookup cache files into a single one.\n"); |     fprintf(stderr, "Merges multiple lookup cache files into a single one.\n"); | ||||||
|     fprintf(stderr, "Usage: lookup-merge [--help] lookup_part_1.bin lookup_part_2.bin ... lookup_merged.bin\n"); |     fprintf(stderr, "Usage: %s [--help] lookup_part_1.bin lookup_part_2.bin ... lookup_merged.bin\n", argv0); | ||||||
| } | } | ||||||
|  |  | ||||||
| int main(int argc, char ** argv){ | int main(int argc, char ** argv){ | ||||||
|     if (argc < 3) { |     if (argc < 3) { | ||||||
|         print_usage(); |         print_usage(argv[0]); | ||||||
|         exit(1); |         exit(1); | ||||||
|     } |     } | ||||||
|  |  | ||||||
| @@ -27,7 +27,7 @@ int main(int argc, char ** argv){ | |||||||
|     for (int i = 0; i < argc-1; ++i) { |     for (int i = 0; i < argc-1; ++i) { | ||||||
|         args[i] = argv[i+1]; |         args[i] = argv[i+1]; | ||||||
|         if (args[i] == "-h" || args[i] == "--help") { |         if (args[i] == "-h" || args[i] == "--help") { | ||||||
|             print_usage(); |             print_usage(argv[0]); | ||||||
|             exit(0); |             exit(0); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 HanClinto
					HanClinto