alot of really small SLMs seem to be too small to even function properly.
however, there may be some unconventional uses for some of them.

one usecase keyword generation. heres what gemma-3-270m-it-qat-Q4_0 gave me

prompt: keywords similar to “construction”

Construction activities
*   Construction design
*   Construction equipment
*   Construction management
*   Construction materials
*   Construction methodology
*   Construction organization
*   Construction planning
*   Construction process
*   Construction project
*   Construction project details
*   Construction project management
*   Construction project management activities
*   Construction project management assessment
*   Construction project management checklist
*   Construction project management document
*   Construction project management evaluation
*   Construction project management framework
*   Construction project management methodology
*   Construction project management plan
*   Construction project management project
*   Construction project management report
*   Construction project management review
*   Construction project management schedule
*   Construction project management software
*   Construction project management strategy
*   Construction project management system
*   Construction project management tool
*   Construction project planning
*   Construction project scope
*   Construction schedule
*   Construction strategy
*   Construction work
```
                
90 TPS (but got stuck in a repeating loop)          
            
i think theres alot of other uses. but they arent really LLM answer that people usually reach for an LLM.
  • corsicanguppy@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 minutes ago

    one usecase keyword generation.

    One use-case: keyword generation.

    Glad to see this wasn’t written by Ai, anyway.

  • hendrik@palaver.p3x.de
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    14 hours ago

    I don’t think these are “keywords similar to construction”… That’d be something like “building”, “contractor”, “builder”, “construction company”, “remodeling”, “roadworks”, …

    And your model didn’t really find any of them. I think that output is next to worthless. If you’re a construction company and use this list for your SEO, nobody is ever going to find out you have an excavator and hire you.

    • leanleft@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      4 hours ago

      well different prompts, at different temps, diff fine tunes , diff quants and quant quality, rag, and lora , are all going to give different results. this is just a single prompt using the model as it is pre-packaged.
      you would have to test by running ~100 prompt variations and determine A)no useful value B) unidentifiably wrong answers (primarily if your requirements are unforgiving) C) no predictable/reliable performance whatsoever.
      if thats turns out to be the case and its unacceptable…
      A) scale up the model size slightly B) spend cash on hardware or service to run the appropriately sized model that accomodates the scale that you need(which could be prohibitively expensive).

      • hendrik@palaver.p3x.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 hours ago

        Sure. I guess what I wanted to say is: Your example doesn’t really support your claim. It kinda goes the opposite way. (But doesn’t prove that, either.)

        I think it’s a bit of a double edged sword. Efficiency and small models are great. We also have some NLP tasks which don’t really require big LLMs. But once you try to use AI, apply it to some real world problems, or embed it into some context… you’ll notice performance issues really add up. I tried to use some 2B parameter models, spent some time tuning everything, built more logic and failsafes into the framework. But at the end of the day I scrapped that hobby project, because the model kept being very limited in its abilities. And issues kept piling up to the point it was utterly unusable.

        A 270M model is barely able to output coherent sentences in one language. I don’t think there’s a lot of world knowledge stored inside, so you can ask it questions and expect it to do anything.

        But keyword extraction is way easier. I don’t think we need LLM inference for that. There are several NLP approaches to do it without a lot of compute. They’re probably way better and more efficient than asking a chatbot to generate some.

        • leanleft@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 hour ago

          im not aware of any nlp tools that generate new keywords(without attaching to an existing database).
          i’m not advertising that all LLMs do what mainstream users expect it to do.
          there are many applications, just for this single example. for other uses or the exact application… you need to figure that out yourself.
          it’s true that larger modern LLMs are cool. but this post isnt about that.

          • hendrik@palaver.p3x.de
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            3 minutes ago

            I think we have several text extraction methods… You can look up the distance between embeddings… We have models which can assign keywords to images, topic modeling (and keyword extraction)… It’s not entirely clear to me where we’re going with this… But I’d say if you’re not using a text corpus or “database” or working on texy, you’d use word embeddings and just look up the distance between them. Very close ones will be synonyms. Next will be similar ones. That’s way less effort than doing inference. And it’ll generate the new keywords just from the embedding space itself. There’s of course also traditional lexical databases. Something like a thesaurus or WordNet comes with least effort.

            Coincidentally, I think the BERT model is still being used for tasks like this. It’s an encoder model, but with a similar amount of parameters like what you mentioned in the post.

  • eleitl@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 hours ago

    I think the more interesting part that for still affordable hardware you could run something locally that is good enough and do not need to refer to commercial models.

  • sleepmode@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    16 hours ago

    For breaking out some simple but tedious processing tasks in scripts they can help save a lot of writing logic and filtering. But it can be a bit rough… I’m having to experiment more than I’d like.

    • abcdqfr@lemmy.world
      link
      fedilink
      English
      arrow-up
      9
      ·
      20 hours ago

      Wrap it in a harness. Dump antipatterns. Keep the rest. Call it a ratchet. Loop that. Fail fast. Refine. See what sticks. Design a better harness. Augment that harness. If nothing good comes out, that’s data and that is good.

      • ComradePenguin@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        I am trying to fully understand this. Can you please elaborate further? Are you thinking about a heuristic based harness?

        • abcdqfr@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          4 hours ago

          Not sure about keyword generation exactly as OP intends to apply this, but short simple code that needs to be validated on output seems like the better application. Models are tiny and fast, so mmap and run in parallel and race to what passes validation first. Each agent gets a git branch. Losers generate the anti patterns. Human or cheap tokens integrates the results from corpus back into harness. Next generation.

    • Otter@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 hours ago

      Using it to tag content can make it easier to search later, bookmark management for example

      • Dr. Bob@lemmy.ca
        link
        fedilink
        English
        arrow-up
        2
        ·
        7 hours ago

        So what’s the advantage of a generated list over “construction”?

        • Otter@lemmy.ca
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 hours ago

          Mostly the ratio of effort to convenience

          I wouldn’t bother thinking up tags for every article I bookmark

          However it is nice if a local model on the device can generate tags automatically

          • Dr. Bob@lemmy.ca
            link
            fedilink
            English
            arrow-up
            2
            ·
            4 hours ago

            But they seem like iterative synonyms. Hardly unique enough to useful tags for either lumping or splitting.

            • Otter@lemmy.ca
              link
              fedilink
              English
              arrow-up
              1
              ·
              8 minutes ago

              Oh I misunderstood, I read construction as manually making tags

              Yes this particular list wouldn’t be that helpful. A different prompt or some post processing would be needed. I’m not familiar with this model either

      • Dr. Bob@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 hours ago

        I can’t think of single useful function. You might as well have generated nonsense syllables and invited us to attach them to words to create meaning.

  • ThorrJo@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 hours ago

    I will eventually experiment with small models for various text- and document-processing tasks.