Instructions to use burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0") model = AutoModelForCausalLM.from_pretrained("burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0
- SGLang
How to use burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0 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 "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0" \ --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": "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0", "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 "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0" \ --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": "burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0 with Docker Model Runner:
docker model run hf.co/burtenshaw/openenv-echo-world-model-liquidai-lfm2.5-350m-seed0
File size: 828 Bytes
b7b9371 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | {
"heldout_env_ce": [
7.432825565338135,
1.5454038381576538,
0.41339555382728577,
0.5253769755363464,
0.6792014241218567,
0.8407131433486938,
0.8823360204696655,
0.8964784145355225,
0.9030759930610657,
0.9062871932983398,
0.9074896574020386,
0.9087783098220825,
0.9101288318634033
],
"step": [
1,
5,
10,
15,
20,
25,
30,
35,
40,
45,
50,
55,
60
],
"train_env_ce": [
12.350140571594238,
0.5916064977645874,
0.17130300402641296,
0.01047209370881319,
0.00027274261810816824,
4.1362458432558924e-05,
1.987504947464913e-05,
1.1365164937160444e-05,
6.813265372329624e-06,
4.60356341136503e-06,
3.4354193303443026e-06,
2.7583723749557976e-06,
2.3096147288015345e-06
]
} |