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

feat: expose openai api endpoints from vllm #112

Merged
merged 4 commits into from
Oct 25, 2024
Merged

feat: expose openai api endpoints from vllm #112

merged 4 commits into from
Oct 25, 2024

Conversation

quitrk
Copy link
Collaborator

@quitrk quitrk commented Oct 24, 2024

No description provided.

@quitrk quitrk force-pushed the tavram/openai branch 5 times, most recently from 80a3a80 to 4a4396b Compare October 24, 2024 13:25
vllm_server_path = os.environ.get('VLLM_SERVER_PATH', 'vllm.entrypoints.openai.api_server')
openai_api_server_port = int(os.environ.get('OPENAI_API_SERVER_PORT', 8003))
openai_api_base_url = os.environ.get('OPENAI_API_BASE_URL', f'http://localhost:{openai_api_server_port}')
openai_api_server_port = int(os.environ.get('OPENAI_API_SERVER_PORT', app_port if use_vllm else 8003))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we get rid of this while we're here, and use the URL, defaulting to ollama's default port when not doing vllm?

sys.exit(1)

log.info(f'Enabled modules: {modules}')

if device == 'cuda' or is_mac:
log.info('Using GPU')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how you solved this!

Copy link
Member

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! We can get rid off the llama-cpp-server thing in a separate PR...

@quitrk quitrk merged commit 22237df into master Oct 25, 2024
@quitrk quitrk deleted the tavram/openai branch October 25, 2024 05:44
shooding added a commit to shooding/skynet that referenced this pull request Nov 26, 2024
* master: (61 commits)
  deps: use pypi provided silero vad, upgrade to latest
  fix: remove public key validation (jitsi#123)
  fix: downgrade vllm (jitsi#122)
  feat: add fallback folder when looking up public keys (jitsi#119)
  fix: add ffmpeg dependency for pytorch
  ref: bypass queueing jobs with invalid payload (jitsi#121)
  fix: replace examplar usage with label for app_id
  feat: add instrumentation for app_id (jitsi#118)
  fix: re-enable vLLM multiprocessing (jitsi#116)
  fix: update incorrect prompt example
  fix: healthchecks failing due to missing internal id (jitsi#115)
  feat(openai-api) use Ollama for local development
  feat: expose openai api endpoints from vllm (jitsi#112)
  feat: update text hint type prompting (jitsi#111)
  feat: add meeting hint type and use it as default (jitsi#110)
  feat: enable requests batching (jitsi#109)
  metrics: add full duration metric
  metrics: add a skipped job status which will not count towards duration metrics
  fix: catch exceptions when echoing fails
  feat: add support for echoing requests (jitsi#107)
  ...

# Conflicts:
#	Dockerfile
#	Makefile
#	requirements.txt
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.

2 participants