Zenabius's picture
Upload README.md with huggingface_hub
9524a46 verified
|
Raw History Blame Contribute Delete
3.6 kB
metadata
language:
  - ru
  - en
tags:
  - spellchecking
  - pytorch
  - natural language generation
  - llama-cpp
  - gguf-my-repo
license: mit
metrics:
  - precision
  - recall
  - f1
library_name: transformers
base_model: ai-forever/sage-mt5-large
model-index:
  - name: sage-mt5-large
    results:
      - task:
          type: text-generation
        dataset:
          name: RUSpellRU
          type: spellcheck_benchmark
        metrics:
          - type: precision
            value: 55.7
            name: Precision
            verified: false
          - type: recall
            value: 68.5
            name: Recall
            verified: false
          - type: f1
            value: 61.4
            name: F1
            verified: false
          - type: precision
            value: 35.4
            name: Precision
            verified: false
          - type: recall
            value: 57.9
            name: Recall
            verified: false
          - type: f1
            value: 43.9
            name: F1
            verified: false
          - type: precision
            value: 35.1
            name: Precision
            verified: false
          - type: recall
            value: 70.8
            name: Recall
            verified: false
          - type: f1
            value: 47
            name: F1
            verified: false
          - type: precision
            value: 47.4
            name: Precision
            verified: false
          - type: recall
            value: 53.8
            name: Recall
            verified: false
          - type: f1
            value: 50.4
            name: F1
            verified: false
      - task:
          type: text-generation
        dataset:
          name: JFLEG
          type: JFLEG
        metrics:
          - type: precision
            value: 74.9
            name: Precision
            verified: false
          - type: recall
            value: 88.4
            name: Recall
            verified: false
          - type: f1
            value: 81.1
            name: F1
            verified: false
      - task:
          type: text-generation
        dataset:
          name: BEA60K
          type: bea60k
        metrics:
          - type: precision
            value: 64.7
            name: Precision
            verified: false
          - type: recall
            value: 83.8
            name: Recall
            verified: false
          - type: f1
            value: 73
            name: F1
            verified: false

Zenabius/sage-mt5-large-Q6_K-GGUF

This model was converted to GGUF format from ai-forever/sage-mt5-large using llama.cpp via the ggml.ai's GGUF-my-repo space. Refer to the original model card for more details on the model.

Use with llama.cpp

Install llama.cpp through brew (works on Mac and Linux)

brew install llama.cpp

Invoke the llama.cpp server or the CLI.

CLI:

llama-cli --hf-repo Zenabius/sage-mt5-large-Q6_K-GGUF --hf-file sage-mt5-large-q6_k.gguf -p "The meaning to life and the universe is"

Server:

llama-server --hf-repo Zenabius/sage-mt5-large-Q6_K-GGUF --hf-file sage-mt5-large-q6_k.gguf -c 2048

Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.

Step 1: Clone llama.cpp from GitHub.

git clone https://github.com/ggerganov/llama.cpp

Step 2: Move into the llama.cpp folder and build it with LLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).

cd llama.cpp && LLAMA_CURL=1 make

Step 3: Run inference through the main binary.

./llama-cli --hf-repo Zenabius/sage-mt5-large-Q6_K-GGUF --hf-file sage-mt5-large-q6_k.gguf -p "The meaning to life and the universe is"

or

./llama-server --hf-repo Zenabius/sage-mt5-large-Q6_K-GGUF --hf-file sage-mt5-large-q6_k.gguf -c 2048