Instructions to use Atomic-Germ/LFM2-2.6B-Transcript-NPU2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Atomic-Germ/LFM2-2.6B-Transcript-NPU2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Atomic-Germ/LFM2-2.6B-Transcript-NPU2") 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("Atomic-Germ/LFM2-2.6B-Transcript-NPU2") model = AutoModelForCausalLM.from_pretrained("Atomic-Germ/LFM2-2.6B-Transcript-NPU2", 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 Atomic-Germ/LFM2-2.6B-Transcript-NPU2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Atomic-Germ/LFM2-2.6B-Transcript-NPU2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Atomic-Germ/LFM2-2.6B-Transcript-NPU2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Atomic-Germ/LFM2-2.6B-Transcript-NPU2
- SGLang
How to use Atomic-Germ/LFM2-2.6B-Transcript-NPU2 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 "Atomic-Germ/LFM2-2.6B-Transcript-NPU2" \ --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": "Atomic-Germ/LFM2-2.6B-Transcript-NPU2", "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 "Atomic-Germ/LFM2-2.6B-Transcript-NPU2" \ --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": "Atomic-Germ/LFM2-2.6B-Transcript-NPU2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Atomic-Germ/LFM2-2.6B-Transcript-NPU2 with Docker Model Runner:
docker model run hf.co/Atomic-Germ/LFM2-2.6B-Transcript-NPU2
Commit History
-
Delete demo.txt
Verified signature1781e72 -
Delete layer.xclbin
Verified signaturefb12b9c -
Delete dequant.xclbin
Verified signatureaf9c5b3 -
Delete mm.xclbin
Verified signature33e2a41 -
Delete conv.xclbin
Verified signature96f764b -
Delete attn.xclbin
Verified signaturec0ea3e2
-
Upload tokenizer.json with huggingface_hub
Verified signature2042698 -
Upload tokenizer_config.json with huggingface_hub
Verified signature2e3a8ba -
Upload README.md with huggingface_hub
Verified signaturea4fc12c -
Upload model.q4nx with huggingface_hub
Verified signature25702ce -
Upload mm.xclbin with huggingface_hub
Verified signaturefd38365 -
Upload layer.xclbin with huggingface_hub
Verified signaturec469add -
Upload dequant.xclbin with huggingface_hub
Verified signature9d33798 -
Upload demo.txt with huggingface_hub
Verified signaturecea7511 -
Upload conv.xclbin with huggingface_hub
Verified signaturea34ef13 -
Upload config.json with huggingface_hub
Verified signature238ea28 -
Upload attn.xclbin with huggingface_hub
Verified signature32d4cb4 -
initial commit
Verified signatureeef9d74