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

mlnomad
/
yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch

Text Generation
Transformers
Safetensors
PyTorch
English
yatnmn_gpt
gpt
yat-pn-alpha
261M
chinchilla
ablation
seed1
custom_code
Model card Files Files and versions
xet
Community

Instructions to use mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch with vLLM:

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

    How to use mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch 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 "mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch" \
        --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": "mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch",
    		"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 "mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch" \
            --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": "mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch",
    		"prompt": "Once upon a time,",
    		"max_tokens": 512,
    		"temperature": 0.5
    	}'
  • Docker Model Runner

    How to use mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch with Docker Model Runner:

    docker model run hf.co/mlnomad/yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch
yatnmn-softplus-d12-chinchilla-261M-seed1-pytorch
1.04 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
mlnomad's picture
mlnomad
Fix HF dynamic_module_utils: replace `from ..X` with `from torch_port.X` (try) + bare `from X` (except)
74d3eb0 verified 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • README.md
    827 Bytes
    Initial upload β€” seed 1 reproducibility 5 months ago
  • config.json
    849 Bytes
    Initial upload β€” seed 1 reproducibility 5 months ago
  • configuration_yatnmn_gpt.py
    1.81 kB
    Initial upload β€” seed 1 reproducibility 5 months ago
  • generation_config.json
    131 Bytes
    Initial upload β€” seed 1 reproducibility 5 months ago
  • model.safetensors
    1.04 GB
    xet
    Initial upload β€” seed 1 reproducibility 5 months ago
  • modeling_yatnmn_gpt.py
    9.5 kB
    Fix HF dynamic_module_utils: replace `from ..X` with `from torch_port.X` (try) + bare `from X` (except) 5 months ago
  • torch_gpt.py
    16.4 kB
    Initial upload β€” seed 1 reproducibility 5 months ago
  • yatnmn_gpt.py
    16.5 kB
    Fix HF dynamic_module_utils: replace `from ..X` with `from torch_port.X` (try) + bare `from X` (except) 5 months ago