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

YifeiZuo
/
Parallax-0.6B

Text Generation
Transformers
Safetensors
parallax
conversational
custom_code
Model card Files Files and versions
xet
Community

Instructions to use YifeiZuo/Parallax-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use YifeiZuo/Parallax-0.6B with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="YifeiZuo/Parallax-0.6B", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("YifeiZuo/Parallax-0.6B", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use YifeiZuo/Parallax-0.6B with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "YifeiZuo/Parallax-0.6B"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "YifeiZuo/Parallax-0.6B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/YifeiZuo/Parallax-0.6B
  • SGLang

    How to use YifeiZuo/Parallax-0.6B 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 "YifeiZuo/Parallax-0.6B" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "YifeiZuo/Parallax-0.6B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "YifeiZuo/Parallax-0.6B" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "YifeiZuo/Parallax-0.6B",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use YifeiZuo/Parallax-0.6B with Docker Model Runner:

    docker model run hf.co/YifeiZuo/Parallax-0.6B
Parallax-0.6B
1.33 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
YifeiZuo's picture
YifeiZuo
Add model card with Apache-2.0 license
0cf73e2 verified 2 months ago
  • .gitattributes
    1.57 kB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • README.md
    1.35 kB
    Add model card with Apache-2.0 license 2 months ago
  • config.json
    904 Bytes
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • configuration_parallax.py
    1.79 kB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • merges.txt
    1.67 MB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • model-00001-of-00001.safetensors
    1.31 GB
    xet
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • model.safetensors.index.json
    30.2 kB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • modeling_parallax.py
    11.7 kB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • tokenizer.json
    11.4 MB
    xet
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • tokenizer_config.json
    9.74 kB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago
  • vocab.json
    2.78 MB
    Upload cleaned Parallax model (config + modeling + weights + tokenizer) 2 months ago