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

doammii
/
LlaMol

Text Generation
Transformers
English
llamol
molecular generation
machine learning
de novo molecular design
Model card Files Files and versions
xet
Community
1

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

  • Libraries
  • Transformers

    How to use doammii/LlaMol with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="doammii/LlaMol")
    # Load model directly
    from transformers import AutoModel
    model = AutoModel.from_pretrained("doammii/LlaMol", dtype="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps
  • vLLM

    How to use doammii/LlaMol with vLLM:

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

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

    How to use doammii/LlaMol with Docker Model Runner:

    docker model run hf.co/doammii/LlaMol
LlaMol
335 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
doammii's picture
doammii
Update README.md
2e9f738 verified about 2 years ago
  • assets
    Add LlaMol codes about 2 years ago
  • config
    Add LlaMol codes about 2 years ago
  • data
    Add LlaMol codes about 2 years ago
  • out
    Add LlaMol codes about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit about 2 years ago
  • .gitignore
    3.56 kB
    Add LlaMol codes about 2 years ago
  • LICENSE
    20.9 kB
    Update LICENSE about 2 years ago
  • README.md
    9.81 kB
    Update README.md about 2 years ago
  • demonstrator.ipynb
    17.5 kB
    Add LlaMol codes about 2 years ago
  • fragment_creator.py
    3.61 kB
    Add LlaMol codes about 2 years ago
  • generate_paper_graphs.sh
    1.46 kB
    Add LlaMol codes about 2 years ago
  • get_fragment_table.sh
    2.93 kB
    Add LlaMol codes about 2 years ago
  • model.py
    32.7 kB
    Add LlaMol codes about 2 years ago
  • plot_utils.py
    17 kB
    Add LlaMol codes about 2 years ago
  • preprocess_dataset.py
    11.9 kB
    Add LlaMol codes about 2 years ago
  • requirements.txt
    123 Bytes
    Add LlaMol codes about 2 years ago
  • sample.py
    23.1 kB
    Add LlaMol codes about 2 years ago
  • tokenizer.py
    13.6 kB
    Add LlaMol codes about 2 years ago
  • torch2-env.yaml
    384 Bytes
    Add LlaMol codes about 2 years ago
  • train.py
    2.99 kB
    Add LlaMol codes about 2 years ago
  • trainLLamaMol.sh
    632 Bytes
    Add LlaMol codes about 2 years ago
  • trainLLamaMolDDPSingleNode.sh
    1.15 kB
    Add LlaMol codes about 2 years ago
  • trainer.py
    20.4 kB
    Add LlaMol codes about 2 years ago