forked from run-llama/llama_index
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Apply comments from llama_index #2
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
llama-index-integrations/llms/llama-index-llms-vesslai/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
# LlamaIndex Llms Integration: VESSL AI | ||
|
||
[VESSL AI](https://vessl.ai/) is an MLOps platform for professional AI & LLM teams. VESSL supports both Multi-Cloud and On-Premise systems, helping ML teams seamlessly manage their workloads and data. | ||
|
||
## LlamaIndex VESSL AI LLM Provider | ||
|
||
The VESSL AI LLM Provider helps AI Engineers serve their models efficiently using the `serve` method. If your team has already deployed an LLM model with VESSL and has an endpoint, you can easily connect to that endpoint and integrate it into your LlamaIndex workflow. The VESSL AI LLM Provider functions similarly to an OPENAI-like object. | ||
|
||
1. To serve a Hugging Face model, use the `serve` method: | ||
|
||
```python | ||
# 1 Serve with Hugging Face model name | ||
llm.serve( | ||
service_name="llama-index-vesslai-test", | ||
model_name="mistralai/Mistral-7B-Instruct-v0.3", | ||
hf_token="HF_TOKEN", | ||
api_key="OPENAI-API-KEY", | ||
) | ||
``` | ||
|
||
2. If you have your own VESSL YAML file for serving, you can deploy the workload using the YAML file: | ||
|
||
```python | ||
# 2 Serve with YAML file | ||
llm.serve( | ||
service_name="llama-index-vesslai-test", | ||
yaml_path="/your/own/service_yaml_file.yaml", | ||
api_key="OPENAI-API-KEY", | ||
) | ||
``` | ||
|
||
3. If you have a pre-served LLM, you can simply connect to the endpoint: | ||
|
||
```python | ||
# 3 Connect with pre-served endpoint | ||
llm.connect( | ||
served_model_name="mistralai/Mistral-7B-Instruct-v0.3", | ||
endpoint="https://model-service-gateway-abc.oregon.google-cluster.vessl.ai/v1", | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jupyter 의 경우 이미 running 중인 Loop이 존재하는 상황이라 해당 loop에 task를 추가하는 방식으로 했습니다. 해당 부분 한번 봐주시면 감사하겠습니다