Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Abinesh
/
Tamil-Transformer

Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
Tamil
gpt2
text-generation-inference
Model card Files Files and versions
xet
Metrics Training metrics Community

Instructions to use Abinesh/Tamil-Transformer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Abinesh/Tamil-Transformer with Transformers:

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

    How to use Abinesh/Tamil-Transformer with vLLM:

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

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

    How to use Abinesh/Tamil-Transformer with Docker Model Runner:

    docker model run hf.co/Abinesh/Tamil-Transformer
Tamil-Transformer
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
Abinesh's picture
Abinesh
Update README.md
afbb4c0 over 2 years ago
  • gpt-2-tamil
    First model version over 2 years ago
  • .DS_Store
    6.15 kB
    First model version over 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • LICENSE
    1.08 kB
    First model version over 2 years ago
  • README.md
    157 Bytes
    Update README.md over 2 years ago
  • config.json
    877 Bytes
    First model version over 2 years ago
  • model.safetensors
    510 MB
    xet
    First model version over 2 years ago
  • pyproject.toml
    512 Bytes
    First model version over 2 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "collections.OrderedDict",
    • "torch._utils._rebuild_tensor_v2",
    • "torch.ByteStorage",
    • "torch.FloatStorage"

    What is a pickle import?

    510 MB
    xet
    First model version over 2 years ago
  • requirements.txt
    55 Bytes
    First model version over 2 years ago
  • tokenizer.json
    1.6 MB
    First model version over 2 years ago