Skip to content

Commit

Permalink
Updates model deployment commands using Eland and Docker (#2651)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0fc0a73)
  • Loading branch information
szabosteve authored and mergify[bot] committed Jan 23, 2024
1 parent 7032da6 commit bdb6b55
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions docs/en/stack/ml/nlp/ml-nlp-deploy-models.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ eland_import_hub_model
--cloud-id <cloud-id> \ <1>
-u <username> -p <password> \ <2>
--hub-model-id elastic/distilbert-base-cased-finetuned-conll03-english \ <3>
--task-type ner \ <4>
--task-type ner <4>
--------------------------------------------------
// NOTCONSOLE
--
Expand All @@ -103,20 +103,10 @@ https://www.elastic.co/guide/en/elasticsearch/client/eland/current/machine-learn
[[ml-nlp-import-docker]]
=== Import with Docker

IMPORTANT: To use the Docker container, you need to clone the Eland repository:
https://github.com/elastic/eland

If you want to use Eland without installing it, clone the Eland repository and
from the root directory run the following to build the Docker image:

```bash
$ docker build -t elastic/eland .
```

You can now use the container interactively:
If you want to use Eland without installing it, run the following command:

```bash
$ docker run -it --rm --network host elastic/eland
$ docker run -it --rm --network host docker.elastic.co/eland/eland
```

The `eland_import_hub_model` script can be run directly in the docker command:
Expand Down

0 comments on commit bdb6b55

Please sign in to comment.