Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • 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

Skywalker1910
/
BB8

Text Generation
Transformers
Safetensors
PyTorch
English
language-model
from-scratch
lora
educational
gpt
decoder-only
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use Skywalker1910/BB8 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="Skywalker1910/BB8")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("Skywalker1910/BB8", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use Skywalker1910/BB8 with vLLM:

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

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

    How to use Skywalker1910/BB8 with Docker Model Runner:

    docker model run hf.co/Skywalker1910/BB8
BB8 / configs
11.1 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
Skywalker1910's picture
Skywalker1910
Upload folder using huggingface_hub
51aabe3 verified about 1 month ago
  • bpe_shakespeare_v007.yaml
    872 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • bpe_shakespeare_v007a.yaml
    811 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • char_medium_v006.yaml
    864 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • char_medium_v006b.yaml
    841 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • chat_models.json
    562 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • default.yaml
    645 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • instruction_v003.yaml
    886 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • medium_model.yaml
    633 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • qwen_grounded_v005.yaml
    983 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • qwen_instruct_v008.yaml
    1.15 kB
    Upload folder using huggingface_hub about 1 month ago
  • qwen_instruct_v008a.yaml
    1.14 kB
    Upload folder using huggingface_hub about 1 month ago
  • qwen_lora_v004.yaml
    1.02 kB
    Upload folder using huggingface_hub about 1 month ago
  • small_model.yaml
    725 Bytes
    Upload folder using huggingface_hub about 1 month ago