Instructions to use Marxav/frpron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Marxav/frpron with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Marxav/frpron")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("Marxav/frpron") model = AutoModelForMultimodalLM.from_pretrained("Marxav/frpron") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Marxav/frpron with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Marxav/frpron" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Marxav/frpron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Marxav/frpron
- SGLang
How to use Marxav/frpron 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 "Marxav/frpron" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Marxav/frpron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Marxav/frpron" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Marxav/frpron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Marxav/frpron with Docker Model Runner:
docker model run hf.co/Marxav/frpron
Fr-word to phonemic pronunciation
This model aims at predicting the syllabized phonemic pronunciation of the French words.
The generated pronunciation is:
- A text string made of International Phonetic Alphabet (IPA) characters;
- Phonemic (i.e. remains at the phoneme-level, not deeper);
- Syllabized (i.e. characters '.' and '‿' are used to identify syllabes).
Such pronunciation is used in the French Wiktionary in the {{pron|...|fr}} tag.
To use this model, simply give an input containing the word that you want to translate followed by ":", for example: "bonjour:". It will generate its predicted pronunciation, for example "bɔ̃.ʒuʁ".
This model remains experimental. Additional finetuning is needed for:
The input length is currently limited to a maximum of 60 letters.
This work is derived from the OTEANN paper and code, which used minGTP.
More information on the model, dataset, hardware, environmental consideration:
The training data
The dataset used for training this models comes from data of the French Wiktionary.
The model
The model is build on gpt2
- Downloads last month
- 2