MCPcopy
hub / github.com/mudler/LocalAI / StartQuantization

Method StartQuantization

pkg/grpc/server.go:806–816  ·  view source on GitHub ↗
(ctx context.Context, in *pb.QuantizationRequest)

Source from the content-addressed store, hash-verified

804}
805
806func (s *server) StartQuantization(ctx context.Context, in *pb.QuantizationRequest) (*pb.QuantizationJobResult, error) {
807 if s.llm.Locking() {
808 s.llm.Lock()
809 defer s.llm.Unlock()
810 }
811 res, err := s.llm.StartQuantization(in)
812 if err != nil {
813 return &pb.QuantizationJobResult{Success: false, Message: fmt.Sprintf("Error starting quantization: %s", err.Error())}, err
814 }
815 return res, nil
816}
817
818func (s *server) QuantizationProgress(in *pb.QuantizationProgressRequest, stream pb.Backend_QuantizationProgressServer) error {
819 if s.llm.Locking() {

Callers

nothing calls this directly

Calls 5

LockingMethod · 0.65
LockMethod · 0.65
UnlockMethod · 0.65
StartQuantizationMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected