File size: 774 Bytes
48c7991 3abd53a 48c7991 3abd53a 48c7991 3abd53a 48c7991 3abd53a 48c7991 3abd53a 48c7991 3abd53a 48c7991 3abd53a |
1 2 3 4 5 6 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 |
---
pipeline_tag: text-generation
library_name: transformers
license: apache-2.0
language:
- fr
- en
tags:
- llama
- function-calling
- sncf
- trains
---
# SNCF Router Model
Ce modèle est un routeur d'outils intelligent pour la recherche de trains SNCF.
## Usage
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Skapersk/sncf")
model = AutoModelForCausalLM.from_pretrained("Skapersk/sncf")
prompt = "J'aimerais aller à Nantes, geoloc: Paris"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
```
## API d'inférence
Le modèle est compatible avec l'API d'inférence Hugging Face.
|