Enum Class OllamaModel

java.lang.Object
java.lang.Enum<OllamaModel>
org.springframework.ai.ollama.api.OllamaModel
All Implemented Interfaces:
Serializable, Comparable<OllamaModel>, Constable, ChatModelDescription, ModelDescription

public enum OllamaModel extends Enum<OllamaModel> implements ChatModelDescription
Helper class for common Ollama models.
Since:
1.0.0
Author:
Siarhei Blashuk, Thomas Vitale
  • Enum Constant Details

    • LLAMA2

      public static final OllamaModel LLAMA2
      Llama 2 is a collection of language models ranging from 7B to 70B parameters.
    • LLAMA3

      public static final OllamaModel LLAMA3
      Llama 3 is a collection of language models ranging from 8B and 70B parameters.
    • LLAMA3_1

      public static final OllamaModel LLAMA3_1
      The 8B language model from Meta.
    • LLAMA3_2

      public static final OllamaModel LLAMA3_2
      The Llama 3.2 3B language model from Meta.
    • LLAMA3_2_1B

      public static final OllamaModel LLAMA3_2_1B
      The Llama 3.2 1B language model from Meta.
    • MISTRAL

      public static final OllamaModel MISTRAL
      The 7B parameters model
    • MISTRAL_NEMO

      public static final OllamaModel MISTRAL_NEMO
      A 12B model with 128k context length, built by Mistral AI in collaboration with NVIDIA.
    • MOONDREAM

      public static final OllamaModel MOONDREAM
      A small vision language model designed to run efficiently on edge devices.
    • DOLPHIN_PHI

      public static final OllamaModel DOLPHIN_PHI
      The 2.7B uncensored Dolphin model
    • PHI

      public static final OllamaModel PHI
      The Phi-2 2.7B language model
    • PHI3

      public static final OllamaModel PHI3
      The Phi-3 3.8B language model
    • NEURAL_CHAT

      public static final OllamaModel NEURAL_CHAT
      A fine-tuned Mistral model
    • STARLING_LM

      public static final OllamaModel STARLING_LM
      Starling-7B model
    • CODELLAMA

      public static final OllamaModel CODELLAMA
      Code Llama is based on Llama 2 model
    • ORCA_MINI

      public static final OllamaModel ORCA_MINI
      Orca Mini is based on Llama and Llama 2 ranging from 3 billion parameters to 70 billion
    • LLAVA

      public static final OllamaModel LLAVA
      Llava is a Large Language and Vision Assistant model
    • GEMMA

      public static final OllamaModel GEMMA
      Gemma is a lightweight model with 2 billion and 7 billion
    • LLAMA2_UNCENSORED

      public static final OllamaModel LLAMA2_UNCENSORED
      Uncensored Llama 2 model
    • NOMIC_EMBED_TEXT

      public static final OllamaModel NOMIC_EMBED_TEXT
      A high-performing open embedding model with a large token context window.
  • Method Details

    • values

      public static OllamaModel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OllamaModel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public String id()
    • getName

      public String getName()
      Specified by:
      getName in interface ModelDescription