Download mosesdecoder/Jamroot from sleepyhead111/vllm_fairseq: direct link, hf CLI and curl.
- Browser
- Download file 11.5 kB
-
https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/Jamroot
- Command line
-
hf download hf://sleepyhead111/vllm_fairseq/mosesdecoder/Jamroot
-
curl -L -o Jamroot https://huggingface.co/sleepyhead111/vllm_fairseq/resolve/main/mosesdecoder/Jamroot
11.5 kB
| #BUILDING MOSES | |
| #PACKAGES | |
| #Language models (optional): | |
| #--with-irstlm=/path/to/irstlm | |
| #--with-srilm=/path/to/srilm See moses/LM/Jamfile for more options. | |
| #--with-maxent-srilm=true (requires a maxent-enabled version of SRILM to be specified via --with-srilm) | |
| #--with-nplm=/path/to/nplm | |
| #--with-randlm=/path/to/randlm | |
| #KenLM is always compiled. | |
| # | |
| #--with-boost=/path/to/boost | |
| #If Boost is in a non-standard location, specify it here. This directory is | |
| #expected to contain include and lib or lib64. | |
| # | |
| #--with-xmlrpc-c=/path/to/xmlrpc-c for libxmlrpc-c (used by server) | |
| #Note that, like language models, this is the --prefix where the library was | |
| #installed, not some executable within the library. | |
| # | |
| #--no-xmlrpc-c | |
| # Don't use xmlrpc-c library, even if it exists. Don't build moses server | |
| # | |
| #Compact phrase table and compact lexical reordering table | |
| #--with-cmph=/path/to/cmph | |
| # | |
| #Thread-caching malloc (if present, used for multi-threaded builds by default) | |
| #--without-tcmalloc does not compile with tcmalloc even if present | |
| #--full-tcmalloc links against the full version (useful for memory profiling) | |
| # | |
| #REGRESSION TESTING | |
| #--with-regtest=/path/to/moses-reg-test-data | |
| # | |
| #INSTALLATION | |
| #--prefix=/path/to/prefix sets the install prefix [default is source root]. | |
| #--bindir=/path/to/prefix/bin sets the bin directory [PREFIX/bin] | |
| #--libdir=/path/to/prefix/lib sets the lib directory [PREFIX/lib] | |
| #--includedir=/path/to/prefix/include installs headers. | |
| # Does not install if missing. No argument defaults to PREFIX/include . | |
| #--install-scripts=/path/to/scripts copies scripts into a directory. | |
| # Does not install if missing. No argument defaults to PREFIX/scripts . | |
| #--git appends the git revision to the prefix directory. | |
| # | |
| # | |
| #BUILD OPTIONS | |
| # By default, the build is multi-threaded, optimized, and statically linked. | |
| # Pass these to change the build: | |
| # | |
| # threading=single|multi controls threading (default multi) | |
| # | |
| # variant=release|debug|profile builds optimized (default), for debug, or for | |
| # profiling | |
| # | |
| # link=static|shared controls preferred linking (default static) | |
| # --static forces static linking (the default will fall | |
| # back to shared) | |
| # | |
| # debug-symbols=on|off include or exclude (default) debugging | |
| # information also known as -g | |
| # --notrace compiles without TRACE macros | |
| # | |
| # --enable-boost-pool uses Boost pools for the memory SCFG tabgle | |
| # | |
| # --enable-mpi switch on mpi | |
| # --without-libsegfault does not link with libSegFault | |
| # | |
| # --max-kenlm-order maximum ngram order that kenlm can process (default 6) | |
| # | |
| # --max-factors maximum number of factors (default 4) | |
| # | |
| # --unlabelled-source ignore source labels (redundant in hiero or string-to-tree system) | |
| # for better performance | |
| #CONTROLLING THE BUILD | |
| #-a to build from scratch | |
| #-j$NCPUS to compile in parallel | |
| #--clean to clean | |
| #--debug-build to build with Og. Only available with gcc 4.8+ | |
| import os ; | |
| import option ; | |
| import modules ; | |
| import path ; | |
| path-constant TOP : . ; | |
| include $(TOP)/jam-files/sanity.jam ; | |
| home = | |
| { | |
| external-lib icuuc ; | |
| external-lib icuio ; | |
| external-lib icui18n ; | |
| requirements += <library>icuuc/<link>shared ; | |
| requirements += <library>icuio/<link>shared ; | |
| requirements += <library>icui18n/<link>shared ; | |
| requirements += <cxxflags>-fPIC ; | |
| requirements += <address-model>64 ; | |
| # requirements += <runtime-link>shared ; | |
| } | |
| # for probing pt | |
| external-lib boost_serialization ; | |
| requirements += <library>boost_serialization/<runtime-link>static ; | |
| if | |
| { | |
| alias mm-extras : | |
| moses/TranslationModel/UG//bitext-find | |
| moses/TranslationModel/UG//ptable-describe-features | |
| moses/TranslationModel/UG//count-ptable-features | |
| moses/TranslationModel/UG//ptable-sigtest-filter | |
| moses/TranslationModel/UG//ptable-lookup | |
| moses/TranslationModel/UG//ptable-lookup-corpus | |
| moses/TranslationModel/UG//check-coverage | |
| moses/TranslationModel/UG/mm//mtt-demo1 | |
| moses/TranslationModel/UG/mm//mtt-dump | |
| moses/TranslationModel/UG/mm//mam2symal | |
| moses/TranslationModel/UG/mm//mam_verify | |
| moses/TranslationModel/UG/mm//mmlex-lookup | |
| moses/TranslationModel/UG/mm//mtt-count-words | |
| moses/TranslationModel/UG/mm//calc-coverage | |
| moses/TranslationModel/UG//try-align | |
| ; | |
| } | |
| else | |
| { | |
| alias mm-extras ; | |
| } | |
| if | |
| { | |
| alias mm : | |
| moses/TranslationModel/UG/mm//mtt-build | |
| moses/TranslationModel/UG/mm//symal2mam | |
| moses/TranslationModel/UG/mm//mmlex-build | |
| ; | |
| } | |
| else | |
| { | |
| alias mm ; | |
| } | |
| if | |
| { | |
| alias rephraser : | |
| contrib/rephraser//paraphrase | |
| ; | |
| } | |
| else | |
| { | |
| alias rephraser ; | |
| } | |
| alias programs : | |
| lm//programs | |
| moses-cmd//programs | |
| OnDiskPt//CreateOnDiskPt | |
| OnDiskPt//queryOnDiskPt | |
| mert//programs | |
| misc//programs | |
| symal | |
| phrase-extract | |
| phrase-extract//lexical-reordering | |
| phrase-extract//extract-ghkm | |
| phrase-extract//pcfg-extract | |
| phrase-extract//pcfg-score | |
| phrase-extract//extract-mixed-syntax | |
| phrase-extract//score-stsg | |
| phrase-extract//filter-rule-table | |
| phrase-extract//postprocess-egret-forests | |
| biconcor | |
| # contrib/mira//mira | |
| contrib/server//mosesserver | |
| mm | |
| mm-extras | |
| rephraser | |
| contrib/c++tokenizer//tokenizer | |
| contrib/expected-bleu-training//train-expected-bleu | |
| contrib/expected-bleu-training//prepare-expected-bleu-training | |
| probingpt//programs | |
| moses2//programs | |
| ; | |
| install-bin-libs programs ; | |
| install-headers headers-base : | |