microsoft / microsoft/BitNet

stopword for translations ??

Open
#247 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
40.3k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Hi, given I want to translate a simple sentence

python run_inference.py -m models/BitNet-b1.58-2B-4T/ggml-model-i2_s.gguf -p "Translate me this sentence into french : the white rabbit jumps over the white rainbow" -n 100 -temp 0.1

but this keeps on repeating text or annotations, word per word translation until it reaches 100 tokens ... Is there any way of saying " Stop, once the appropriate answer is given ? "

Thanks a zillion time for any clue, notice, comment, enlightenment ;)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the run_inference.py command and its translation-related generation options. Check whether an existing stop condition can end output when the translation is complete, then determine what behavior should be verified for the example command. Done means the command stops at an appropriate end point instead of continuing to the token limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
ai, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.