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

  • Log In
  • Sign Up

Mattimax
/
DACMini

Text Generation
Transformers
Safetensors
Italian
gpt2
DAC
DATA-AI
data-ai
text-generation-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use Mattimax/DACMini with Transformers:

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

    How to use Mattimax/DACMini with vLLM:

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

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

    How to use Mattimax/DACMini with Docker Model Runner:

    docker model run hf.co/Mattimax/DACMini
DACMini
1.31 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
Mattimax's picture
Mattimax
Update README.md
f4f04df verified 7 months ago
  • DACMini_Logo
    Upload DACMini_Logo.png 7 months ago
  • .gitattributes
    1.59 kB
    Upload DACMini_Logo.png 7 months ago
  • README.md
    5.6 kB
    Update README.md 7 months ago
  • added_tokens.json
    50 Bytes
    Upload 15 files 7 months ago
  • config.json
    1.13 kB
    Upload 15 files 7 months ago
  • generation_config.json
    159 Bytes
    Upload 15 files 7 months ago
  • merges.txt
    287 kB
    Upload 15 files 7 months ago
  • model.safetensors
    436 MB
    xet
    Upload 15 files 7 months ago
  • optimizer.pt
    871 MB
    xet
    Upload 15 files 7 months ago
  • rng_state.pth
    14.6 kB
    xet
    Upload 15 files 7 months ago
  • scaler.pt
    1.38 kB
    xet
    Upload 15 files 7 months ago
  • scheduler.pt
    1.47 kB
    xet
    Upload 15 files 7 months ago
  • special_tokens_map.json
    607 Bytes
    Upload 15 files 7 months ago
  • tokenizer.json
    2.15 MB
    Upload 15 files 7 months ago
  • tokenizer_config.json
    959 Bytes
    Upload 15 files 7 months ago
  • trainer_state.json
    108 kB
    Upload 15 files 7 months ago
  • training_args.bin
    5.78 kB
    xet
    Upload 15 files 7 months ago
  • vocab.json
    487 kB
    Upload 15 files 7 months ago