Instructions to use FLOPS-Squared/KeystoneFuse-Baseline-B-Flax with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FLOPS-Squared/KeystoneFuse-Baseline-B-Flax with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FLOPS-Squared/KeystoneFuse-Baseline-B-Flax") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FLOPS-Squared/KeystoneFuse-Baseline-B-Flax") model = AutoModelForCausalLM.from_pretrained("FLOPS-Squared/KeystoneFuse-Baseline-B-Flax", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FLOPS-Squared/KeystoneFuse-Baseline-B-Flax with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FLOPS-Squared/KeystoneFuse-Baseline-B-Flax
- SGLang
How to use FLOPS-Squared/KeystoneFuse-Baseline-B-Flax 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 "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax" \ --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": "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax", "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 "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax" \ --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": "FLOPS-Squared/KeystoneFuse-Baseline-B-Flax", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FLOPS-Squared/KeystoneFuse-Baseline-B-Flax with Docker Model Runner:
docker model run hf.co/FLOPS-Squared/KeystoneFuse-Baseline-B-Flax
Commit History
-
Upload FlaxLlamaForCausalLM
Verified signature21b80ad -
Checkpoint step 675765
Verified signature77d46d1 -
Checkpoint step 650000
Verified signature0247b87 -
Checkpoint step 600000
Verified signatured7d334c
-
Checkpoint step 550000
Verified signaturef8c8c01 -
Checkpoint step 540612
Verified signature26e5731 -
Checkpoint step 500000
Verified signature672013e -
Checkpoint step 450000
Verified signature7e22f61 -
Checkpoint step 405459
Verified signature415af0d -
Checkpoint step 400000
Verified signature6c65f2c -
Checkpoint step 350000
Verified signature3c63ef9 -
Checkpoint step 300000
Verified signature4e27448 -
Checkpoint step 270306
Verified signaturef1936ba -
Checkpoint step 250000
Verified signatured684c0e -
Checkpoint step 200000
Verified signature78e794b -
Checkpoint step 150000
Verified signaturecc7dbfa -
Checkpoint step 135153
Verified signatureceb6a99 -
Checkpoint step 100000
Verified signature62c263a -
Checkpoint step 50000
Verified signature1dc73f1 -
Checkpoint step 32
Verified signaturedefc778 -
Checkpoint step 0
Verified signature87a63b7 -
Upload tokenizer
Verified signature763b0b3 -
initial commit
Verified signature09c3327