Giter Site home page Giter Site logo

Comments (2)

jubgjf avatar jubgjf commented on July 17, 2024

您好,可以参考对这部分参数的说明:

def main(
        old_tokenizer: str,          # 原版模型tokenizer加载路径
        new_tokenizer: str,          # 扩词表模型tokenizer加载路径
        old_model: str,              # 原版模型加载路径,该目录下的权重文件需要是一个单独的`pytorch_model.bin`
        new_model: str,              # 扩词表模型保存路径
        save_embedding_plots: bool,  # 是否绘制embedding
):

调用方式为:

$ python models/init_embeddings.py --old_tokenizer /path/to/mixtral --new_tokenizer /path/to/chinese-mixtral --old_model /path/to/mixtral --new_model /path/to/chinese-mixtral --save_embedding_plots

from chinese-mixtral-8x7b.

whosyourdadds avatar whosyourdadds commented on July 17, 2024

您好,可以参考这部分参数的说明:

def main(
        old_tokenizer: str,          # 原版模型tokenizer加载路径
        new_tokenizer: str,          # 扩词表模型tokenizer加载路径
        old_model: str,              # 原版模型加载路径,该目录下的权重文件需要是一个单独的`pytorch_model.bin`
        new_model: str,              # 扩词表模型保存路径
        save_embedding_plots: bool,  # 是否绘制embedding
):

调用方式为:

$ python models/init_embeddings.py --old_tokenizer /path/to/mixtral --new_tokenizer /path/to/chinese-mixtral --old_model /path/to/mixtral --new_model /path/to/chinese-mixtral --save_embedding_plots

好的,多谢

from chinese-mixtral-8x7b.

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.