Instructions to use Dmitriy007/Socrat_batch3_epochs5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dmitriy007/Socrat_batch3_epochs5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Dmitriy007/Socrat_batch3_epochs5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Dmitriy007/Socrat_batch3_epochs5") model = AutoModelForCausalLM.from_pretrained("Dmitriy007/Socrat_batch3_epochs5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Dmitriy007/Socrat_batch3_epochs5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dmitriy007/Socrat_batch3_epochs5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dmitriy007/Socrat_batch3_epochs5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Dmitriy007/Socrat_batch3_epochs5
- SGLang
How to use Dmitriy007/Socrat_batch3_epochs5 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 "Dmitriy007/Socrat_batch3_epochs5" \ --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": "Dmitriy007/Socrat_batch3_epochs5", "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 "Dmitriy007/Socrat_batch3_epochs5" \ --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": "Dmitriy007/Socrat_batch3_epochs5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Dmitriy007/Socrat_batch3_epochs5 with Docker Model Runner:
docker model run hf.co/Dmitriy007/Socrat_batch3_epochs5
Commit History
-
Training in progress, step 19000
cbbd677 -
Training in progress, step 18000
48854af -
Training in progress, step 17000
0359d3d -
Training in progress, step 16000
9f0d7bd
-
Training in progress, step 15000
5d98ca3 -
Training in progress, step 14000
b38615c -
Training in progress, step 13000
0dfc9d5 -
Training in progress, step 12000
1a4dd9c -
Training in progress, step 11000
d424cb7 -
Training in progress, step 10000
aa22b54 -
Training in progress, step 9000
989671e -
Training in progress, step 8000
612a42a -
Training in progress, step 7000
7e6de7a -
Training in progress, step 6000
dd06878 -
Training in progress, step 5000
ce2ae74 -
Training in progress, step 4000
40f38bd -
Training in progress, step 3000
986fa5a -
Training in progress, step 1000
63123e4
-
initial commit
2c66833