Text Generation
Transformers
Safetensors
English
blenderbot
text2text-generation
BlenderBot
Conversational
Fine-tuned
Text Generation
Eval Results (legacy)
Instructions to use 12sciencejnv/TalkGPT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 12sciencejnv/TalkGPT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="12sciencejnv/TalkGPT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("12sciencejnv/TalkGPT") model = AutoModelForSeq2SeqLM.from_pretrained("12sciencejnv/TalkGPT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 12sciencejnv/TalkGPT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "12sciencejnv/TalkGPT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "12sciencejnv/TalkGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/12sciencejnv/TalkGPT
- SGLang
How to use 12sciencejnv/TalkGPT 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 "12sciencejnv/TalkGPT" \ --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": "12sciencejnv/TalkGPT", "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 "12sciencejnv/TalkGPT" \ --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": "12sciencejnv/TalkGPT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 12sciencejnv/TalkGPT with Docker Model Runner:
docker model run hf.co/12sciencejnv/TalkGPT
Delete generation_config1.json
Browse files- generation_config1.json +0 -15
generation_config1.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_from_model_config": true,
|
| 3 |
-
"bos_token_id": 1,
|
| 4 |
-
"decoder_start_token_id": 1,
|
| 5 |
-
"encoder_no_repeat_ngram_size": 3,
|
| 6 |
-
"eos_token_id": 2,
|
| 7 |
-
"forced_eos_token_id": 2,
|
| 8 |
-
"length_penalty": 0.65,
|
| 9 |
-
"max_length": 60,
|
| 10 |
-
"min_length": 20,
|
| 11 |
-
"no_repeat_ngram_size": 3,
|
| 12 |
-
"num_beams": 10,
|
| 13 |
-
"pad_token_id": 0,
|
| 14 |
-
"transformers_version": "4.46.3"
|
| 15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|