Text Generation
Transformers
PyTorch
JAX
Safetensors
French
gpt2
conversational
text-generation-inference
Instructions to use cedpsam/chatbot_fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cedpsam/chatbot_fr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cedpsam/chatbot_fr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cedpsam/chatbot_fr") model = AutoModelForCausalLM.from_pretrained("cedpsam/chatbot_fr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cedpsam/chatbot_fr with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cedpsam/chatbot_fr" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cedpsam/chatbot_fr", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cedpsam/chatbot_fr
- SGLang
How to use cedpsam/chatbot_fr 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 "cedpsam/chatbot_fr" \ --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": "cedpsam/chatbot_fr", "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 "cedpsam/chatbot_fr" \ --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": "cedpsam/chatbot_fr", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cedpsam/chatbot_fr with Docker Model Runner:
docker model run hf.co/cedpsam/chatbot_fr
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.0f72f15
-
Update README.md
a43a9ec
-
upload flax model
5a0fe81 -
allow flax
89efd1b
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/cedpsam/chatbot_fr/README.mdee0ed48
-
Update vocab.json
0d4c354 -
Update tokenizer_config.json
3a28663 -
Update special_tokens_map.json
3e08a4a -
Update pytorch_model.bin
4d647d5 -
Update merges.txt
d5901db -
Update config.json
b79bbba -
Update merges.txt
d240266 -
Update config.json
e19593b
-
Update merges.txt
b6d063d -
Update tokenizer_config.json
711fd41 -
Update vocab.json
9fee672 -
Update special_tokens_map.json
11ce774 -
Update config.json
8257612
-
Update merges.txt
4e31457 -
Update tokenizer_config.json
bf3d840 -
Update special_tokens_map.json
985cb49 -
Update config.json
ef04e00 -
Update vocab.json
a97d76a
-
Update merges.txt
87841e7 -
Update config.json
cdfda4d -
Update special_tokens_map.json
f15798e -
Update vocab.json
8d74a9b -
Update tokenizer_config.json
6ff8123 -
initial commit
dde95f5