mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-11-04 09:32:00 +00:00 
			
		
		
		
	Makefile : add gptneox gguf example
This commit is contained in:
		
							
								
								
									
										8
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,5 +1,5 @@
 | 
				
			|||||||
# Define the default target now so that it is always the first target
 | 
					# Define the default target now so that it is always the first target
 | 
				
			||||||
BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple server embd-input-test gguf
 | 
					BUILD_TARGETS = main quantize quantize-stats perplexity embedding vdot train-text-from-scratch simple server embd-input-test gguf gptneox-main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Binaries only useful for tests
 | 
					# Binaries only useful for tests
 | 
				
			||||||
TEST_TARGETS = tests/test-double-float tests/test-grad0 tests/test-opt tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0
 | 
					TEST_TARGETS = tests/test-double-float tests/test-grad0 tests/test-opt tests/test-quantize-fns tests/test-quantize-perf tests/test-sampling tests/test-tokenizer-0
 | 
				
			||||||
@@ -329,6 +329,9 @@ grammar-parser.o: examples/grammar-parser.cpp examples/grammar-parser.h
 | 
				
			|||||||
libllama.so: llama.o ggml.o $(OBJS)
 | 
					libllama.so: llama.o ggml.o $(OBJS)
 | 
				
			||||||
	$(CXX) $(CXXFLAGS) -shared -fPIC -o $@ $^ $(LDFLAGS)
 | 
						$(CXX) $(CXXFLAGS) -shared -fPIC -o $@ $^ $(LDFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					gptneox-common.o: gptneox-common.cpp gptneox-common.h
 | 
				
			||||||
 | 
						$(CXX) $(CXXFLAGS) -c $< -o $@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
clean:
 | 
					clean:
 | 
				
			||||||
	rm -vf *.o *.so *.dll main quantize quantize-stats perplexity embedding benchmark-matmult save-load-state server simple vdot train-text-from-scratch embd-input-test gguf build-info.h $(TEST_TARGETS)
 | 
						rm -vf *.o *.so *.dll main quantize quantize-stats perplexity embedding benchmark-matmult save-load-state server simple vdot train-text-from-scratch embd-input-test gguf build-info.h $(TEST_TARGETS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -373,6 +376,9 @@ embd-input-test: $(LIB_PRE)embdinput$(DSO_EXT) examples/embd-input/embd-input-te
 | 
				
			|||||||
gguf: examples/gguf/gguf.cpp                                  build-info.h ggml.o $(OBJS)
 | 
					gguf: examples/gguf/gguf.cpp                                  build-info.h ggml.o $(OBJS)
 | 
				
			||||||
	$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 | 
						$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					gptneox-main: gptneox-main.cpp gptneox-common.o ggml.o $(OBJS)
 | 
				
			||||||
 | 
						$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
train-text-from-scratch: examples/train-text-from-scratch/train-text-from-scratch.cpp    build-info.h ggml.o llama.o $(OBJS)
 | 
					train-text-from-scratch: examples/train-text-from-scratch/train-text-from-scratch.cpp    build-info.h ggml.o llama.o $(OBJS)
 | 
				
			||||||
	$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 | 
						$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user