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

  • Log In
  • Sign Up

josephilo
/
tmp1

Text Generation
Transformers
PyTorch
llama
text-generation-inference
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use josephilo/tmp1 with Transformers:

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

    How to use josephilo/tmp1 with vLLM:

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

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

    How to use josephilo/tmp1 with Docker Model Runner:

    docker model run hf.co/josephilo/tmp1
tmp1
30.1 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 11 commits
y8lc2wpi
Upload mix.json
99ca2c5 almost 3 years ago
  • .ipynb_checkpoints
    Upload folder using huggingface_hub almost 3 years ago
  • .gitattributes
    1.61 kB
    Upload mix.json almost 3 years ago
  • cccc.json
    738 MB
    xet
    Upload cccc.json almost 3 years ago
  • config.json
    580 Bytes
    Upload folder using huggingface_hub almost 3 years ago
  • generation_config.json
    137 Bytes
    Upload folder using huggingface_hub almost 3 years ago
  • mix.json
    235 MB
    xet
    Upload mix.json almost 3 years ago
  • pytorch_model-00001-of-00002.bin
    9.95 GB
    xet
    Upload folder using huggingface_hub almost 3 years ago
  • pytorch_model-00002-of-00002.bin
    3.65 GB
    xet
    Upload folder using huggingface_hub almost 3 years ago
  • pytorch_model.bin.index.json
    26.8 kB
    Upload folder using huggingface_hub almost 3 years ago
  • special_tokens_map.json
    411 Bytes
    Upload folder using huggingface_hub almost 3 years ago
  • tokenizer.model
    588 kB
    xet
    Upload folder using huggingface_hub almost 3 years ago
  • tokenizer_config.json
    727 Bytes
    Upload folder using huggingface_hub almost 3 years ago
  • videochat.pth
    822 MB
    xet
    Upload folder using huggingface_hub almost 3 years ago
  • videos.zip
    14.7 GB
    xet
    Upload videos.zip almost 3 years ago