Skip to content
Snippets Groups Projects
Commit 316f41c4 authored by Abhinav Jain's avatar Abhinav Jain
Browse files

adding commands to compile

parent d758c736
No related branches found
No related tags found
1 merge request!15Add interface for using generic CoreML LLMs
This commit is part of merge request !15. Comments created here will be created in the context of that merge request.
...@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment