Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

cgrumbach
/
BitcoinPaper

Text Generation
Transformers
Safetensors
mistral
text-generation-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use cgrumbach/BitcoinPaper with Transformers:

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

    How to use cgrumbach/BitcoinPaper with vLLM:

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

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

    How to use cgrumbach/BitcoinPaper with Docker Model Runner:

    docker model run hf.co/cgrumbach/BitcoinPaper
BitcoinPaper / scraper
87.7 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 1 commit
cgrumbach's picture
cgrumbach
Upload 15 files
6adb5cf verified almost 2 years ago
  • __pycache__
    Upload 15 files almost 2 years ago
  • preprocessing
    Upload 15 files almost 2 years ago
  • .DS_Store
    6.15 kB
    Upload 15 files almost 2 years ago
  • .gitignore
    3.17 kB
    Upload 15 files almost 2 years ago
  • README.md
    3.04 kB
    Upload 15 files almost 2 years ago
  • auto_crawl.sh
    690 Bytes
    Upload 15 files almost 2 years ago
  • auto_crawl_topic.sh
    216 Bytes
    Upload 15 files almost 2 years ago
  • main.ipynb
    16.9 kB
    Upload 15 files almost 2 years ago
  • main.py
    11.3 kB
    Upload 15 files almost 2 years ago
  • sort.py
    2.14 kB
    Upload 15 files almost 2 years ago
  • topic_crawling.py
    10 kB
    Upload 15 files almost 2 years ago
  • website_format.json
    7.48 kB
    Upload 15 files almost 2 years ago