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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

User01110
/
cma-mini

Text Generation
Transformers
Safetensors
PyTorch
cma
custom_code
causal-lm
small-language-model
generalist
4k-tokenizer
Model card Files Files and versions
xet
Community
1

Instructions to use User01110/cma-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use User01110/cma-mini with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="User01110/cma-mini", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("User01110/cma-mini", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use User01110/cma-mini with vLLM:

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

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

    How to use User01110/cma-mini with Docker Model Runner:

    docker model run hf.co/User01110/cma-mini
cma-mini
10.6 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 8 commits
User01110's picture
User01110
Step 60000: Int 6.84, Avg 35.26%, BPB 1.4127
21efcb1 verified about 3 hours ago
  • .gitattributes
    1.52 kB
    initial commit about 19 hours ago
  • README.md
    7.6 kB
    Step 60000: Int 6.84, Avg 35.26%, BPB 1.4127 about 3 hours ago
  • benchmark_results.json
    6.55 kB
    Step 60000: Int 6.84, Avg 35.26%, BPB 1.4127 about 3 hours ago
  • config.json
    1.03 kB
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago
  • generation_config.json
    138 Bytes
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago
  • model.safetensors
    10.3 MB
    xet
    Step 60000: Int 6.84, Avg 35.26%, BPB 1.4127 about 3 hours ago
  • modeling_cma.py
    17 kB
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago
  • tokenizer.json
    265 kB
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago
  • tokenizer_config.json
    337 Bytes
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago
  • training_config.json
    2.08 kB
    Step 1000: Int 3.62, Avg 33.52%, BPB 1.6417 about 19 hours ago