Instructions to use Finisha-F-scratch/Charlotte-tchat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Finisha-F-scratch/Charlotte-tchat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Finisha-F-scratch/Charlotte-tchat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Finisha-F-scratch/Charlotte-tchat") model = AutoModelForSeq2SeqLM.from_pretrained("Finisha-F-scratch/Charlotte-tchat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Finisha-F-scratch/Charlotte-tchat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Finisha-F-scratch/Charlotte-tchat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Finisha-F-scratch/Charlotte-tchat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Finisha-F-scratch/Charlotte-tchat
- SGLang
How to use Finisha-F-scratch/Charlotte-tchat 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 "Finisha-F-scratch/Charlotte-tchat" \ --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": "Finisha-F-scratch/Charlotte-tchat", "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 "Finisha-F-scratch/Charlotte-tchat" \ --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": "Finisha-F-scratch/Charlotte-tchat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Finisha-F-scratch/Charlotte-tchat with Docker Model Runner:
docker model run hf.co/Finisha-F-scratch/Charlotte-tchat
Commit History
-
Update README.md
Verified signature568f07a -
Update README.md
Verified signatured9df57c
-
Delete chat_template.jinja
Verified signatureacbd327 -
Create chat_template.jinja
Verified signaturefd571ca
-
Update README.md
Verified signature84479bb -
Create LICENSE
Verified signature1e1086b -
Update README.md
Verified signature0382233
-
Upload folder using huggingface_hub
Verified signature305a742 -
Upload folder using huggingface_hub
Verified signaturedf1403a -
Upload folder using huggingface_hub
Verified signature8023fbc -
Upload folder using huggingface_hub
Verified signaturef442d5c -
Upload folder using huggingface_hub
Verified signature7ef711e -
Upload folder using huggingface_hub
Verified signaturee3391e0 -
Upload folder using huggingface_hub
Verified signature5534c7e -
Upload folder using huggingface_hub
Verified signature1192e43 -
Upload folder using huggingface_hub
Verified signaturea60c900 -
Upload folder using huggingface_hub
Verified signature7af572a -
Upload folder using huggingface_hub
Verified signature8374554 -
Upload folder using huggingface_hub
Verified signature648961a -
Upload folder using huggingface_hub
Verified signature3ed5afc -
Upload folder using huggingface_hub
Verified signatureb08dda3 -
initial commit
Verified signaturec4ef137