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

anto18671
/
lumenspark

Text Generation
Transformers
Safetensors
English
lumenspark
custom_code
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use anto18671/lumenspark with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="anto18671/lumenspark", trust_remote_code=True)
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("anto18671/lumenspark", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use anto18671/lumenspark with vLLM:

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

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

    How to use anto18671/lumenspark with Docker Model Runner:

    docker model run hf.co/anto18671/lumenspark
lumenspark
453 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 87 commits
anto18671's picture
anto18671
Upload 3 files
4306d2e verified almost 2 years ago
  • assets
    Upload training_loss_plot.png almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • LICENSE
    1.07 kB
    Upload LICENSE almost 2 years ago
  • README.md
    4.79 kB
    Update README.md almost 2 years ago
  • config.json
    460 Bytes
    Upload 3 files almost 2 years ago
  • configuration_lumenspark.py
    1.5 kB
    Upload 3 files almost 2 years ago
  • generation_config.json
    69 Bytes
    Upload 4 files almost 2 years ago
  • merges.txt
    456 kB
    Upload 4 files almost 2 years ago
  • model.safetensors
    450 MB
    xet
    Upload 4 files almost 2 years ago
  • modeling_lumenspark.py
    10.3 kB
    Upload 3 files almost 2 years ago
  • tokenizer.json
    1.36 MB
    Upload 4 files almost 2 years ago
  • tokenizer_config.json
    26 Bytes
    Upload 4 files almost 2 years ago
  • training_args.bin

    Detected Pickle imports (9)

    • "transformers.training_args.TrainingArguments",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "accelerate.utils.dataclasses.DistributedType",
    • "torch.device",
    • "accelerate.state.PartialState"

    How to fix it?

    5.18 kB
    xet
    Upload 4 files almost 2 years ago
  • vocab.json
    1.04 MB
    Upload 4 files almost 2 years ago