Text Generation
Transformers
Safetensors
Catalan
Spanish
English
llama
query-parsing
semantic-search
structured-output
json-generation
multilingual
catalan
spanish
LoRA
fine-tuned
AINA
R&D
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use SIRIS-Lab/impuls-salamandra-7b-query-parser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SIRIS-Lab/impuls-salamandra-7b-query-parser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SIRIS-Lab/impuls-salamandra-7b-query-parser") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SIRIS-Lab/impuls-salamandra-7b-query-parser") model = AutoModelForCausalLM.from_pretrained("SIRIS-Lab/impuls-salamandra-7b-query-parser") 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 SIRIS-Lab/impuls-salamandra-7b-query-parser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SIRIS-Lab/impuls-salamandra-7b-query-parser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SIRIS-Lab/impuls-salamandra-7b-query-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SIRIS-Lab/impuls-salamandra-7b-query-parser
- SGLang
How to use SIRIS-Lab/impuls-salamandra-7b-query-parser 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 "SIRIS-Lab/impuls-salamandra-7b-query-parser" \ --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": "SIRIS-Lab/impuls-salamandra-7b-query-parser", "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 "SIRIS-Lab/impuls-salamandra-7b-query-parser" \ --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": "SIRIS-Lab/impuls-salamandra-7b-query-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SIRIS-Lab/impuls-salamandra-7b-query-parser with Docker Model Runner:
docker model run hf.co/SIRIS-Lab/impuls-salamandra-7b-query-parser
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -19,6 +19,8 @@ tags:
|
|
| 19 |
- fine-tuned
|
| 20 |
- AINA
|
| 21 |
- R&D
|
|
|
|
|
|
|
| 22 |
metrics:
|
| 23 |
- accuracy
|
| 24 |
model-index:
|
|
@@ -111,12 +113,15 @@ projectes d'IA en salut finançats per H2020 des de 2020
|
|
| 111 |
| Warmup ratio | 0.1 |
|
| 112 |
|
| 113 |
### Training Data
|
| 114 |
-
|
|
|
|
|
|
|
| 115 |
- **Language distribution**: ~33% Catalan, ~33% Spanish, ~33% English
|
| 116 |
- **Query types**: Discover (88%), Quantify (12%)
|
| 117 |
|
| 118 |
### Evaluation Data
|
| 119 |
-
|
|
|
|
| 120 |
- **Annotation**: Manual gold-standard JSON for each query
|
| 121 |
|
| 122 |
## Evaluation Results
|
|
@@ -305,6 +310,7 @@ This model is released under the [Apache 2.0 License](https://www.apache.org/lic
|
|
| 305 |
|
| 306 |
## Links
|
| 307 |
|
|
|
|
| 308 |
- **Project Repository**: [github.com/sirisacademic/aina-impulse](https://github.com/sirisacademic/aina-impulse)
|
| 309 |
- **Base Model**: [BSC-LT/salamandra-7b-instruct-tools](https://huggingface.co/BSC-LT/salamandra-7b-instruct-tools)
|
| 310 |
- **AINA Project**: [projecteaina.cat](https://projecteaina.cat/)
|
|
|
|
| 19 |
- fine-tuned
|
| 20 |
- AINA
|
| 21 |
- R&D
|
| 22 |
+
datasets:
|
| 23 |
+
- SIRIS-Lab/impuls-query-parsing
|
| 24 |
metrics:
|
| 25 |
- accuracy
|
| 26 |
model-index:
|
|
|
|
| 113 |
| Warmup ratio | 0.1 |
|
| 114 |
|
| 115 |
### Training Data
|
| 116 |
+
|
| 117 |
+
- **Dataset**: [SIRIS-Lab/impuls-query-parsing](https://huggingface.co/datasets/SIRIS-Lab/impuls-query-parsing)
|
| 118 |
+
- **Training split**: 682 multilingual queries (synthetic, template-generated)
|
| 119 |
- **Language distribution**: ~33% Catalan, ~33% Spanish, ~33% English
|
| 120 |
- **Query types**: Discover (88%), Quantify (12%)
|
| 121 |
|
| 122 |
### Evaluation Data
|
| 123 |
+
|
| 124 |
+
- **Test split**: 100 real queries from domain experts (SIRIS Academic)
|
| 125 |
- **Annotation**: Manual gold-standard JSON for each query
|
| 126 |
|
| 127 |
## Evaluation Results
|
|
|
|
| 310 |
|
| 311 |
## Links
|
| 312 |
|
| 313 |
+
- **Training Dataset**: [SIRIS-Lab/impuls-query-parsing](https://huggingface.co/datasets/SIRIS-Lab/impuls-query-parsing)
|
| 314 |
- **Project Repository**: [github.com/sirisacademic/aina-impulse](https://github.com/sirisacademic/aina-impulse)
|
| 315 |
- **Base Model**: [BSC-LT/salamandra-7b-instruct-tools](https://huggingface.co/BSC-LT/salamandra-7b-instruct-tools)
|
| 316 |
- **AINA Project**: [projecteaina.cat](https://projecteaina.cat/)
|