Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds prompt lookup decoding (ngram speculation) #375

Merged
merged 51 commits into from
Apr 3, 2024
Merged

Adds prompt lookup decoding (ngram speculation) #375

merged 51 commits into from
Apr 3, 2024

Conversation

tgaddair
Copy link
Contributor

@tgaddair tgaddair commented Apr 3, 2024

Adds prompt lookup decoding (ngram speculation) via initialization param --speculative-tokens.

Example:

lorax-launcher ... --speculative-tokens 3

Closes #259.
Related #205.
Related #329.

@tgaddair tgaddair merged commit 3ca53b9 into main Apr 3, 2024
2 checks passed
@tgaddair tgaddair deleted the ngram branch April 3, 2024 18:06
@lighteternal
Copy link

lighteternal commented Apr 8, 2024

Hi @tgaddair! Many thanks for the new merge 🙏
This new argument --speculative-tokens 3 is not available while running the docker run command in the latest image, is this correct?

Usage: lorax-launcher <--model-id <MODEL_ID>|--adapter-id <ADAPTER_ID>|--source <SOURCE>|--adapter-source <ADAPTER_SOURCE>|--revision <REVISION>|--validation-workers <VALIDATION_WORKERS>|--sharded <SHARDED>|--num-shard <NUM_SHARD>|--quantize <QUANTIZE>|--compile|--dtype <DTYPE>|--trust-remote-code|--max-concurrent-requests <MAX_CONCURRENT_REQUESTS>|--max-best-of <MAX_BEST_OF>|--max-stop-sequences <MAX_STOP_SEQUENCES>|--max-input-length <MAX_INPUT_LENGTH>|--max-total-tokens <MAX_TOTAL_TOK or 'app.py' filENS>|--waiting-served-ratio <WAITING_SERVED_RATIO>|--max-batch-prefill-tokens <MAX_BATCH_PREFILL_TOKENS>|--max-batch-total-tokens <MAX_BATCH_TOTAL_TOKENS>|--max-waiting-tokens <MAX_WAITING_TOKENS>|--max-active-adapters <MAX_ACTIVE_ADAPTERS>|--adapter-cycle-time-s <ADAPTER_CYCLE_TIME_S>|--adapter-memory-fraction <ADAPTER_MEMORY_FRACTION>|--hostname <HOSTNAME>|--port <PORT>|--shard-uds-path <SHARD_UDS_PATH>|--master-addr <MASTER_ADDR>|--master-port <MASTER_PORT>|--huggingface-hub-cache <HUGGINGFACE_HUB_CACHE>|--weights-cache-override <WEIGHTS_CACHE_OVERRIDE>|--disable-custom-kernels|--cuda-memory-fraction <CUDA_MEMORY_FRACTION>|--json-output|--otlp-endpoint <OTLP_ENDPOINT>|--cors-allow-origin <CORS_ALLOW_ORIGIN>|--cors-allow-header <CORS_ALLOW_HEADER>|--cors-expose-header <CORS_EXPOSE_HEADER>|--cors-allow-method <CORS_ALLOW_METHOD>|--cors-allow-credentials <CORS_ALLOW_CREDENTIALS>|--watermark-gamma <WATERMARK_GAMMA>|--watermark-delta <WATERMARK_DELTA>|--ngrok|--ngrok-authtoken <NGROK_AUTHTOKEN>|--ngrok-edge <NGROK_EDGE>|--env|--download-only>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for ngram speculation with --speculative-tokens param
2 participants