Package 

Class GgufAdapter

  • All Implemented Interfaces:
    ai.zerogpu.android.sdk.adapter.InferenceAdapter , java.lang.AutoCloseable

    
    public final class GgufAdapter
     implements InferenceAdapter
                        

    GGUF adapter (kind decoder_generation). One generate path serves every generative task type (text generation, summary, translation, chat, instruct, …); the task differs only by the prompt, which is data in the opaque input.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class GgufAdapter.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ModelConfig config
    • Method Summary

      Modifier and Type Method Description
      ModelConfig getConfig()
      JsonObject run(JsonObject input) Run one job.
      SampleResult runSample(JsonObject sample) Warm up / self-test using the recipe's sample.
      Unit close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait