LLamaSharp/docs/xmldocs/llama.quantizer.md

64 lines
1.6 KiB
Markdown
Raw Normal View History

2024-03-31 20:44:29 +08:00
# Quantizer
Namespace: LLama
```csharp
public class Quantizer
```
Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [Quantizer](./llama.quantizer.md)
## Constructors
### **Quantizer()**
```csharp
public Quantizer()
```
## Methods
### **Quantize(String, String, LLamaFtype, Int32, Boolean)**
```csharp
public static bool Quantize(string srcFileName, string dstFilename, LLamaFtype ftype, int nthread, bool printInfo)
```
#### Parameters
`srcFileName` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
`dstFilename` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
`ftype` [LLamaFtype](./llama.native.llamaftype.md)<br>
`nthread` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
`printInfo` [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
#### Returns
[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
### **Quantize(String, String, String, Int32, Boolean)**
```csharp
public static bool Quantize(string srcFileName, string dstFilename, string ftype, int nthread, bool printInfo)
```
#### Parameters
`srcFileName` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
`dstFilename` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
`ftype` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
`nthread` [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)<br>
`printInfo` [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>
#### Returns
[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean)<br>