qwen_7.5b_chat model from Qwen

Description

Pretrained QwenTransformer, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.qwen_7.5b_chat is a english model originally trained by Qwen.

Download Copy S3 URI

How to use

 
documentAssembler = DocumentAssembler() \
      .setInputCol("text") \
      .setOutputCol("document")
    
seq2seq = QwenTransformer.pretrained("qwen_7.5b_chat","en") \
      .setInputCols(["document"]) \
      .setOutputCol("generation")       
        
pipeline = Pipeline().setStages([documentAssembler, seq2seq])
data = spark.createDataFrame([["I love spark-nlp"]]).toDF("text")
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)


val documentAssembler = new DocumentAssembler() 
    .setInputCol("text") 
    .setOutputCol("document")
    
val seq2seq = QwenTransformer.pretrained("qwen_7.5b_chat","en") 
    .setInputCols(Array("document")) 
    .setOutputCol("embeddings")

val pipeline = new Pipeline().setStages(Array(documentAssembler, seq2seq))
val data = Seq("I love spark-nlp").toDF("text")
val pipelineModel = pipeline.fit(data)
val pipelineDF = pipelineModel.transform(data)

Model Information

Model Name: qwen_7.5b_chat
Compatibility: Spark NLP 5.5.1+
License: Open Source
Edition: Official
Input Labels: [documents]
Output Labels: [generation]
Language: en
Size: 7.0 GB

References

https://huggingface.co/Qwen/Qwen1.5-7B-Chat