Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Den4ikAI
/
rugpt3_2ch

Text Generation
Transformers
PyTorch
Safetensors
Russian
gpt2
text-generation-inference
Model card Files Files and versions
xet
Community
1

Instructions to use Den4ikAI/rugpt3_2ch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Den4ikAI/rugpt3_2ch with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Den4ikAI/rugpt3_2ch")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForCausalLM
    
    tokenizer = AutoTokenizer.from_pretrained("Den4ikAI/rugpt3_2ch")
    model = AutoModelForCausalLM.from_pretrained("Den4ikAI/rugpt3_2ch")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use Den4ikAI/rugpt3_2ch with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "Den4ikAI/rugpt3_2ch"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "Den4ikAI/rugpt3_2ch",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
    Use Docker
    docker model run hf.co/Den4ikAI/rugpt3_2ch
  • SGLang

    How to use Den4ikAI/rugpt3_2ch 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 "Den4ikAI/rugpt3_2ch" \
        --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": "Den4ikAI/rugpt3_2ch",
    		"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 "Den4ikAI/rugpt3_2ch" \
            --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": "Den4ikAI/rugpt3_2ch",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use Den4ikAI/rugpt3_2ch with Docker Model Runner:

    docker model run hf.co/Den4ikAI/rugpt3_2ch
rugpt3_2ch
1.11 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 17 commits
Den4ikAI's picture
Den4ikAI
SFconvertbot's picture
SFconvertbot
Adding `safetensors` variant of this model (#1)
6cc6170 almost 3 years ago
  • .gitattributes
    1.4 kB
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • README.md
    342 Bytes
    Update README.md almost 4 years ago
  • added_tokens.json
    29 Bytes
    Upload added_tokens.json almost 4 years ago
  • config.json
    863 Bytes
    Upload config.json almost 4 years ago
  • merges.txt
    1.27 MB
    Upload merges.txt almost 4 years ago
  • model.safetensors
    551 MB
    xet
    Adding `safetensors` variant of this model (#1) almost 3 years ago
  • pytorch_model.bin
    551 MB
    xet
    Upload pytorch_model.bin almost 4 years ago
  • special_tokens_map.json
    217 Bytes
    Upload special_tokens_map.json almost 4 years ago
  • tokenizer.json
    3.74 MB
    Upload tokenizer.json almost 4 years ago
  • tokenizer_config.json
    753 Bytes
    Upload tokenizer_config.json almost 4 years ago
  • vocab.json
    1.61 MB
    Upload vocab.json almost 4 years ago