Giter Site home page Giter Site logo

Comments (9)

kpu avatar kpu commented on July 25, 2024

Stop creating more of a mess. Get Nick's PR in.

from bergamot-translator.

qianqianzhu avatar qianqianzhu commented on July 25, 2024

@jerinphilip Can you first get browsermt/marian-dev#26 merged? Then I can have the new BinaryShortlistGenerator to make changes.

from bergamot-translator.

kpu avatar kpu commented on July 25, 2024

Merge into browsermt/marian-dev#26 done and Nick's PR is in. I've demanded @jerinphilip simplify Service (#61) to decrease the tax imposed by too many classes.

from bergamot-translator.

jerinphilip avatar jerinphilip commented on July 25, 2024

Hello @qianqianzhu. Your scope ends at demonstrating functionality at the boundary of Service, which is now collapsed into a single class with ifdefs.

Probably keep a watch on how #63 moves, as you'll need similar datatypes for shortlist as well?

Service handles interaction of translation components.

explicit Service(Ptr<Options> options, const void *model_memory = nullptr);
.

You will have to get the shortlist memory down to batchtranslator through:

translators_.emplace_back(deviceId, vocabs_, options, model_memory_);

explicit BatchTranslator(DeviceId const device, std::vector<Ptr<Vocab const>> &vocabs,

BatchTranslator will look like translator or server parts which you already have edited to bring the changes to marian-dev.

To test functionality, please follow @XapaJIaMnu on #55, but do not edit the unified API boundaries (TranslationModel, AbstractTranslationModel) as it can potentially lead to WASM build errors etc. You might just want to incorporate the bytearray shortlist test just below:

void * model_bytes = bergamot::getBinaryModelFromConfig(options);

from bergamot-translator.

qianqianzhu avatar qianqianzhu commented on July 25, 2024

Just made a new PR (browsermt/marian-dev#28 (comment)) to enable binary shortlist loading from bytebuffer (which was missed last time). Also, if this PR get merged, can we update marian-dev submodule?

from bergamot-translator.

jerinphilip avatar jerinphilip commented on July 25, 2024

@qianqianzhu Looks like kpu seems to be squash merging small features.

can we update marian-dev submodule?

This needn't block your feature development. Get the functionality (in bergamot-translator) ready within your PR by change of submodule (you can change the submodule as you want in shortlist_plumb branch) and bring the change in submodule in with your shortlist PR here. Given the squash merges, multiple jumps aren't likely to pollute history.

(There's a mess in marian-dev submodules due to some wasm divergence, ideally don't bother, just develop your functionality, nothing till Service should be affected).

from bergamot-translator.

qianqianzhu avatar qianqianzhu commented on July 25, 2024

Thanks! If this is fine to make changes, I will make a PR soon.

from bergamot-translator.

abhi-agg avatar abhi-agg commented on July 25, 2024

@qianqianzhu Can we close this issue or is there anything else that is left to be done before closing it?

from bergamot-translator.

kpu avatar kpu commented on July 25, 2024

@abhi-agg From our perspective it's ready for javascript to give us the bytes.

from bergamot-translator.

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.