Text Generation
Transformers
Safetensors
Finnish
English
bloom
conversational
text-generation-inference
Instructions to use LumiOpen/Poro-34B-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LumiOpen/Poro-34B-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LumiOpen/Poro-34B-chat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LumiOpen/Poro-34B-chat") model = AutoModelForCausalLM.from_pretrained("LumiOpen/Poro-34B-chat") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LumiOpen/Poro-34B-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LumiOpen/Poro-34B-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LumiOpen/Poro-34B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/LumiOpen/Poro-34B-chat
- SGLang
How to use LumiOpen/Poro-34B-chat with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "LumiOpen/Poro-34B-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LumiOpen/Poro-34B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "LumiOpen/Poro-34B-chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LumiOpen/Poro-34B-chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use LumiOpen/Poro-34B-chat with Docker Model Runner:
docker model run hf.co/LumiOpen/Poro-34B-chat
Add model card
#8
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
datasets:
|
| 4 |
- LumiOpen/instruction-collection-fin
|
| 5 |
language:
|
| 6 |
- fi
|
| 7 |
- en
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
|
|
|
| 9 |
<div align="center">
|
| 10 |
<img src="./poro-logo.png" width="200px">
|
| 11 |
</div>
|
|
@@ -77,6 +80,17 @@ Note: Updated on 18 June 2024
|
|
| 77 |
|
| 78 |
Poro 34B chat is released under the Apache 2.0 license.
|
| 79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
## Citation
|
| 82 |
|
|
@@ -91,4 +105,4 @@ Pyysalo},
|
|
| 91 |
archivePrefix={arXiv},
|
| 92 |
primaryClass={cs.CL}
|
| 93 |
}
|
| 94 |
-
```
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
datasets:
|
| 3 |
- LumiOpen/instruction-collection-fin
|
| 4 |
language:
|
| 5 |
- fi
|
| 6 |
- en
|
| 7 |
+
license: apache-2.0
|
| 8 |
+
library_name: transformers
|
| 9 |
+
pipeline_tag: text-generation
|
| 10 |
---
|
| 11 |
+
|
| 12 |
<div align="center">
|
| 13 |
<img src="./poro-logo.png" width="200px">
|
| 14 |
</div>
|
|
|
|
| 80 |
|
| 81 |
Poro 34B chat is released under the Apache 2.0 license.
|
| 82 |
|
| 83 |
+
## Paper
|
| 84 |
+
|
| 85 |
+
The model was presented in the paper [Poro 34B and the Blessing of Multilinguality](https://huggingface.co/papers/2404.01856).
|
| 86 |
+
|
| 87 |
+
## Project Page
|
| 88 |
+
|
| 89 |
+
[Poro-34B](https://huggingface.co/LumiOpen/Poro-34B)
|
| 90 |
+
|
| 91 |
+
## Code
|
| 92 |
+
|
| 93 |
+
The code can be found at https://github.com/TurkuNLP/Megatron-DeepSpeed.
|
| 94 |
|
| 95 |
## Citation
|
| 96 |
|
|
|
|
| 105 |
archivePrefix={arXiv},
|
| 106 |
primaryClass={cs.CL}
|
| 107 |
}
|
| 108 |
+
```
|