Git Product home page Git Product logo

Comments (8)

Vaibhavs10 avatar Vaibhavs10 commented on July 23, 2024 4

Wohoo! btw - Just a heads-up the model is a FIM type. So would be a little different in terms of the way you prompt it.

In case you want to see the changes from Mistral to StarCoder2: huggingface/transformers#29120

from mlx-examples.

Vaibhavs10 avatar Vaibhavs10 commented on July 23, 2024 4

What's FIM? And does the HF tokenizer template handle that or do we need to do something special?

FIM - Fill in the Middle. Nothing special. Just that it is not chat-tuned.

https://huggingface.co/bigcode/starcoder2-15b#running-the-model-on-cpugpumulti-gpu

from mlx-examples.

sugatoray avatar sugatoray commented on July 23, 2024 4

FIM: Fill in the Middle arxiv-paper

from mlx-examples.

awni avatar awni commented on July 23, 2024 2

Happy to accept a contribution for that!

from mlx-examples.

lazarust avatar lazarust commented on July 23, 2024 1

@awni I'll take a stab at it and see what I can do! Could you point me to a good starting point?

from mlx-examples.

lazarust avatar lazarust commented on July 23, 2024 1

@awni Could you also assign me to this issue? I can't seem to do it

from mlx-examples.

awni avatar awni commented on July 23, 2024

Of course!

So it's relatively simple, you add the model file to this directory: https://github.com/ml-explore/mlx-examples/tree/main/llms/mlx_lm/models

You can see other examples in there, I recommend starting from one of the models that is pretty similar to starcoder2

Make sure the name of the model file is the same as the model_type in the config (starcoder2) (https://huggingface.co/bigcode/starcoder2-7b/blob/main/config.json#L17)

If you want to add LoRA support you can edit this section of the code as needed

from mlx-examples.

awni avatar awni commented on July 23, 2024

Just a heads-up the model is a FIM type

What's FIM? And does the HF tokenizer template handle that or do we need to do something special?

from mlx-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.