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

updating python and scala model names #14488

Open
wants to merge 1 commit into
base: release/600-release-candidate
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions python/sparknlp/annotator/seq2seq/llama3_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class LLAMA3Transformer(AnnotatorModel, HasBatchedAnnotate, HasEngine):
... .setOutputCol("generation")


The default model is ``"llama3-7b"``, if no name is provided. For available
The default model is ``"llama_3_7b_chat_hf_int4"``, if no name is provided. For available
pretrained models please see the `Models Hub
<https://sparknlp.org/models?q=llama3>`__.

Expand Down Expand Up @@ -108,7 +108,7 @@ class LLAMA3Transformer(AnnotatorModel, HasBatchedAnnotate, HasEngine):
>>> documentAssembler = DocumentAssembler() \\
... .setInputCol("text") \\
... .setOutputCol("documents")
>>> llama3 = LLAMA3Transformer.pretrained("llama_3_7b_chat_hf_int8") \\
>>> llama3 = LLAMA3Transformer.pretrained("llama_3_7b_chat_hf_int4") \\
... .setInputCols(["documents"]) \\
... .setMaxOutputLength(60) \\
... .setOutputCol("generation")
Expand Down Expand Up @@ -365,7 +365,7 @@ def pretrained(name="llama_3_7b_chat_hf_int4", lang="en", remote_loc=None):
Parameters
----------
name : str, optional
Name of the pretrained model, by default "llama_2_7b_chat_hf_int4"
Name of the pretrained model, by default "llama_3_7b_chat_hf_int4"
lang : str, optional
Language of the pretrained model, by default "en"
remote_loc : str, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ import org.json4s.jackson.JsonMethods._
* .setInputCols("document")
* .setOutputCol("generation")
* }}}
* The default model is `"llama_3_7b_chat_hf_int8"`, if no name is provided. For available
* The default model is `"llama_3_7b_chat_hf_int4"`, if no name is provided. For available
* pretrained models please see the [[https://sparknlp.org/models?q=llama3 Models Hub]].
*
* For extended examples of usage, see
Expand Down Expand Up @@ -101,7 +101,7 @@ import org.json4s.jackson.JsonMethods._
* .setInputCol("text")
* .setOutputCol("documents")
*
* val llama3 = LLAMA3Transformer.pretrained("llama_3_7b_chat_hf_int8")
* val llama3 = LLAMA3Transformer.pretrained("llama_3_7b_chat_hf_int4")
* .setInputCols(Array("documents"))
* .setMinOutputLength(15)
* .setMaxOutputLength(60)
Expand Down Expand Up @@ -359,7 +359,7 @@ class LLAMA3Transformer(override val uid: String)
trait ReadablePretrainedLLAMA3TransformerModel
extends ParamsAndFeaturesReadable[LLAMA3Transformer]
with HasPretrained[LLAMA3Transformer] {
override val defaultModelName: Some[String] = Some("llama3")
override val defaultModelName: Some[String] = Some("llama_3_7b_chat_hf_int4")

/** Java compliant-overrides */
override def pretrained(): LLAMA3Transformer = super.pretrained()
Expand Down