Any FOSS apps for the Linux CLI that can summarize a large text into short paragraphs or bullet points?

  • 257m
    link
    fedilink
    4
    edit-2
    2 years ago

    You can use tldr for man pages but for generic text I don’t know. You would probably need a LLM.

    • zoe
      link
      fedilink
      22 years ago

      could anyone recommend an LLM that could be run locally or on google colab ? thanks

      • 257m
        link
        fedilink
        5
        edit-2
        2 years ago

        I believe Llama is open source but not sure how complicated it is to get running locally. Nevermind: https://replicate.com/blog/run-llama-locally

        You can probably write a bash wrapper around it that feeds in “Can you summarize this text: (text here)

          • 257m
            link
            fedilink
            1
            edit-2
            2 years ago

            Just to warn you it might be very bulky and the model that the script is downloading is deprecated so you’ll have to find a different .gguf model on hugging face. Try to find a lightweight .gguf model and replace the MODEL variable with it nane as well the rest of the link. Or just download from a browser and move it into the models folder.