Text Generation
Transformers
Safetensors
Spanish
qwen2
ODESIA
conversational
text-generation-inference
Instructions to use HiTZ/Qwen2.5-14B-Instruct_ODESIA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HiTZ/Qwen2.5-14B-Instruct_ODESIA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="HiTZ/Qwen2.5-14B-Instruct_ODESIA") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("HiTZ/Qwen2.5-14B-Instruct_ODESIA") model = AutoModelForCausalLM.from_pretrained("HiTZ/Qwen2.5-14B-Instruct_ODESIA", device_map="auto") 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 HiTZ/Qwen2.5-14B-Instruct_ODESIA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "HiTZ/Qwen2.5-14B-Instruct_ODESIA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "HiTZ/Qwen2.5-14B-Instruct_ODESIA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/HiTZ/Qwen2.5-14B-Instruct_ODESIA
- SGLang
How to use HiTZ/Qwen2.5-14B-Instruct_ODESIA 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 "HiTZ/Qwen2.5-14B-Instruct_ODESIA" \ --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": "HiTZ/Qwen2.5-14B-Instruct_ODESIA", "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 "HiTZ/Qwen2.5-14B-Instruct_ODESIA" \ --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": "HiTZ/Qwen2.5-14B-Instruct_ODESIA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use HiTZ/Qwen2.5-14B-Instruct_ODESIA with Docker Model Runner:
docker model run hf.co/HiTZ/Qwen2.5-14B-Instruct_ODESIA
Improve language tag
#1
by lbourdois - opened
README.md
CHANGED
|
@@ -1,47 +1,59 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
tags:
|
| 4 |
-
- ODESIA
|
| 5 |
-
license: apache-2.0
|
| 6 |
-
language:
|
| 7 |
-
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</div>
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- ODESIA
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
language:
|
| 7 |
+
- zho
|
| 8 |
+
- eng
|
| 9 |
+
- fra
|
| 10 |
+
- spa
|
| 11 |
+
- por
|
| 12 |
+
- deu
|
| 13 |
+
- ita
|
| 14 |
+
- rus
|
| 15 |
+
- jpn
|
| 16 |
+
- kor
|
| 17 |
+
- vie
|
| 18 |
+
- tha
|
| 19 |
+
- ara
|
| 20 |
+
pipeline_tag: text-generation
|
| 21 |
+
base_model:
|
| 22 |
+
- Qwen/Qwen2.5-14B-Instruct
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
<p align="center">
|
| 27 |
+
<br>
|
| 28 |
+
<img src="https://leaderboard.odesia.uned.es/sites/default/files/ODESIA_leaderboard.png" style="height: 250px;">
|
| 29 |
+
<br>
|
| 30 |
+
<h3 align="center">Evaluation of NLP models in Spanish</h3>
|
| 31 |
+
<h1 align="center">IXA Submission for the 2024 ODESIA Challenge</h1>
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
This model is the fine-tuned Qwen/Qwen2.5-14B-Instruct used in the IXA submission for the 2024 ODESIA Challenge.
|
| 36 |
+
- 📈 ODESIA Leaderboard: https://leaderboard.odesia.uned.es/leaderboard/challenge
|
| 37 |
+
|
| 38 |
+
You can use this model to reproduce our results using the code in this repository:
|
| 39 |
+
- 💻 GitHub: https://github.com/hitz-zentroa/Odesia-Struct
|
| 40 |
+
- 📒 System Description Paper: Cooming Soon
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
### Model Description
|
| 44 |
+
|
| 45 |
+
- **Developed by:** [Iker García-Ferrero](https://ikergarcia1996.github.io/Iker-Garcia-Ferrero/)
|
| 46 |
+
- **Language(s) (NLP):** Spanish
|
| 47 |
+
|
| 48 |
+
<div style="display: flex; justify-content: space-around; width: 100%;">
|
| 49 |
+
<div style="width: 50%;" align="left">
|
| 50 |
+
<a href="http://ixa.si.ehu.es/">
|
| 51 |
+
<img src="https://raw.githubusercontent.com/ikergarcia1996/Iker-Garcia-Ferrero/master/icons/ixa.png" width="50" height="50" alt="Ixa NLP Group">
|
| 52 |
+
</a>
|
| 53 |
+
</div>
|
| 54 |
+
<div style="width: 50%;" align="right">
|
| 55 |
+
<a href="http://www.hitz.eus/">
|
| 56 |
+
<img src="https://raw.githubusercontent.com/ikergarcia1996/Iker-Garcia-Ferrero/master/icons/Hitz.png" width="300" height="50" alt="HiTZ Basque Center for Language Technologies">
|
| 57 |
+
</a>
|
| 58 |
+
</div>
|
| 59 |
</div>
|