-
Notifications
You must be signed in to change notification settings - Fork 66
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
docs: add inference section #529
Conversation
docs/tasks/image-to-image.md
Outdated
``` | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
integrate the
docs/tasks/text-to-text.md
Outdated
print(test_da.embeddings) | ||
``` | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
integrate the
docs/tasks/text-to-image.md
Outdated
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned model there. | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
integrate the
docs/tasks/text-to-image.md
Outdated
``` | ||
|
||
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned model there. |
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.
to learn how to plug-in a finetuned CLIP model to our CLIP specific service.
docs/tasks/text-to-image.md
Outdated
When fine-tuning CLIP, we are fine-tuning the CLIPVisionEncoder and CLIPTextEncoder in parallel. | ||
The artifact contains two models: `clip-vision` and `clip-text`. | ||
The parameter `select_model` tells finetune which model to use for inference, in the above example, |
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.
finetuner
docs/tasks/text-to-image.md
Outdated
The artifact contains two models: `clip-vision` and `clip-text`. | ||
The parameter `select_model` tells finetune which model to use for inference, in the above example, | ||
we use `clip-text` to encode a Document with text. |
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.
with text content
docs/tasks/text-to-image.md
Outdated
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
use the fine-tuned model
docs/tasks/image-to-image.md
Outdated
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
use the
docs/tasks/text-to-text.md
Outdated
## Inference | ||
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
use the
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.
added some minor grammatical suggestions
docs/tasks/image-to-image.md
Outdated
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
let's use fine-tuned model to encode a new `Document`. | |
let's use the fine-tuned model to encode a new `Document`: |
docs/tasks/image-to-image.md
Outdated
``` | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. | |
That's it! If you want to integrate a fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
docs/tasks/text-to-image.md
Outdated
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
let's use fine-tuned model to encode a new `Document`. | |
let's use the fine-tuned model to encode a new `Document`. |
docs/tasks/text-to-image.md
Outdated
When fine-tuning CLIP, we are fine-tuning the CLIPVisionEncoder and CLIPTextEncoder in parallel. | ||
The artifact contains two models: `clip-vision` and `clip-text`. | ||
The parameter `select_model` tells finetune which model to use for inference, in the above example, |
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.
The parameter `select_model` tells finetune which model to use for inference, in the above example, | |
The parameter `select_model` tells finetuner which model to use for inference, in the above example, |
docs/tasks/text-to-image.md
Outdated
``` | ||
|
||
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned model there. |
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.
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned model there. | |
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned models there. |
docs/tasks/text-to-image.md
Outdated
Check out [clip-as-service](https://clip-as-service.jina.ai/user-guides/finetuner/?highlight=finetuner#fine-tune-models) to know how to plug-in fine-tuned model there. | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. | |
That's it! If you want to integrate a fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
docs/tasks/text-to-text.md
Outdated
## Inference | ||
|
||
Now you saved the `artifact` into your host machine, | ||
let's use fine-tuned model to encode a new `Document`. |
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.
let's use fine-tuned model to encode a new `Document`. | |
let's use the fine-tuned model to encode a new `Document`. |
docs/tasks/text-to-text.md
Outdated
print(test_da.embeddings) | ||
``` | ||
|
||
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
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.
That's it! If you want to integrate fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. | |
That's it! If you want to integrate a fine-tuned model into your Jina Flow, please check out {ref}`integrated with the Jina ecosystem <integrate-with-jina>`. |
📝 Docs are deployed on https://ft-docs-improve-examples--jina-docs.netlify.app 🎉 |
Improve three examples with
inference
section: https://ft-docs-improve-examples--jina-docs.netlify.app/docs-improve-examples/tasks/text-to-text/#inference