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

mokshjain
/
FemtoScience

Text Generation
Transformers
Safetensors
English
femtoscience_moe
mixture-of-experts
science
chemistry
biology
proteins
dna
galactica
base-model
conversational
custom_code
Model card Files Files and versions
xet
Community

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

  • Libraries
  • Transformers

    How to use mokshjain/FemtoScience with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-generation", model="mokshjain/FemtoScience", trust_remote_code=True)
    messages = [
        {"role": "user", "content": "Who are you?"},
    ]
    pipe(messages)
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoModelForCausalLM
    model = AutoModelForCausalLM.from_pretrained("mokshjain/FemtoScience", trust_remote_code=True, device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
  • Local Apps Settings
  • vLLM

    How to use mokshjain/FemtoScience with vLLM:

    Install from pip and serve model
    # Install vLLM from pip:
    pip install vllm
    # Start the vLLM server:
    vllm serve "mokshjain/FemtoScience"
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:8000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mokshjain/FemtoScience",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    Use Docker
    docker model run hf.co/mokshjain/FemtoScience
  • SGLang

    How to use mokshjain/FemtoScience 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 "mokshjain/FemtoScience" \
        --host 0.0.0.0 \
        --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mokshjain/FemtoScience",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
    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 "mokshjain/FemtoScience" \
            --host 0.0.0.0 \
            --port 30000
    # Call the server using curl (OpenAI-compatible API):
    curl -X POST "http://localhost:30000/v1/chat/completions" \
    	-H "Content-Type: application/json" \
    	--data '{
    		"model": "mokshjain/FemtoScience",
    		"messages": [
    			{
    				"role": "user",
    				"content": "What is the capital of France?"
    			}
    		]
    	}'
  • Docker Model Runner

    How to use mokshjain/FemtoScience with Docker Model Runner:

    docker model run hf.co/mokshjain/FemtoScience
FemtoScience
1.99 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 6 commits
mokshjain's picture
mokshjain
Card: ClimbMix is CC-BY-NC-4.0
f538ab7 verified 1 day ago
  • .gitattributes
    1.52 kB
    initial commit 5 days ago
  • README.md
    10.1 kB
    Card: ClimbMix is CC-BY-NC-4.0 1 day ago
  • checksums.sha256
    1.04 kB
    Card: ClimbMix is CC-BY-NC-4.0 1 day ago
  • config.json
    948 Bytes
    Remote code: transformers Cache API, GenerationMixin; config num_experts_per_tok/mtp_head 5 days ago
  • configuration_femtoscience.py
    3.21 kB
    Remote code: transformers Cache API, GenerationMixin; config num_experts_per_tok/mtp_head 5 days ago
  • femtoscience_meta.json
    140 Bytes
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • generation_config.json
    77 Bytes
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • model.safetensors
    1.96 GB
    xet
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • modeling_femtoscience.py
    16.6 kB
    Remote code: transformers Cache API, GenerationMixin; config num_experts_per_tok/mtp_head 5 days ago
  • mtp.safetensors
    27.3 MB
    xet
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • tokenization_femtoscience.py
    16 kB
    Tokenizer: resolve Hub repo ids in from_pretrained 5 days ago
  • tokenizer.json
    4.6 MB
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • tokenizer_config.json
    511 Bytes
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago
  • training_metadata.json
    1.09 kB
    Stage 3 cooldown: final base (250B tokens, 16K) 5 days ago