Skip to content
Snippets Groups Projects

Add interface for using generic CoreML LLMs

Merged Abhinav Jain requested to merge compile_cmd_line_generic_model_broken into main
1 file
+ 7
0
Compare changes
  • Side-by-side
  • Inline
@@ -26,6 +26,13 @@ import Foundation
@@ -26,6 +26,13 @@ import Foundation
import CoreML
import CoreML
 
// To compile the model for this file:
 
// $ cd Sources/SwiftNLP/Resources
 
// $ xcrun coremlcompiler compile all-MiniLM-L6-v2.mlpackage .
 
// $ rm -rf all-MiniLM-L6-v2.mlmodelc/analytics
 
// $ cd ../../..
 
 
class CoreMLEncoder<Scalar: BinaryFloatingPoint & Codable>: SNLPEncoder {
class CoreMLEncoder<Scalar: BinaryFloatingPoint & Codable>: SNLPEncoder {
var zeroes: [Scalar]
var zeroes: [Scalar]
Loading