Instructions to use Tristo/sociopath with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tristo/sociopath with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tristo/sociopath")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Tristo/sociopath") model = AutoModelForCausalLM.from_pretrained("Tristo/sociopath", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Tristo/sociopath with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tristo/sociopath" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tristo/sociopath", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Tristo/sociopath
- SGLang
How to use Tristo/sociopath 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 "Tristo/sociopath" \ --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": "Tristo/sociopath", "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 "Tristo/sociopath" \ --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": "Tristo/sociopath", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Tristo/sociopath with Docker Model Runner:
docker model run hf.co/Tristo/sociopath
Commit History
-
Upload training_args.bin
b99a496 -
Delete training_args.bin
694bf17 -
Upload pytorch_model.bin
6878271 -
Delete pytorch_model.bin
0753d85
-
Upload pytorch_model.bin
b877ca7 -
Delete pytorch_model.bin
ec216d8 -
Delete pytorch_model (2).bin
303af0f -
Upload pytorch_model.bin
2759db6 -
Delete pytorch_model.bin
b1144bf
-
Delete special_tokens_map.json
072f300 -
Delete model_args.json
65f71ae -
Delete tokenizer_config.json
6dbe8b4 -
Upload pytorch_model.bin
35fe0d4 -
Delete pytorch_model.bin
783fcb7 -
Upload pytorch_model.bin
7da2e32 -
Delete pytorch_model.bin
618d5d3
-
Upload pytorch_model.bin
a2a27e1 -
Upload pytorch_model (2).bin
3d556cf -
pytorch_model.bin
4c67ed8
-
Upload vocab.json
e8fe782 -
Upload training_args.bin with git-lfs
275553b -
Upload tokenizer_config.json
9e3a621 -
Upload special_tokens_map.json
59e1a21 -
Upload model_args.json
fa342c7 -
Upload merges.txt
7f91e89 -
Upload eval_results.txt
7b64ad9 -
Upload config.json
d0ccf54 -
pytorch_model.bin
7c9dd44 -
initial commit
5cdd308