$ python main2.py
Starting server…
Success! Server is now running on port 1234
Server is up!
Found 11 LLM models:
• devstral-small-2507 → load as mistralai/devstral-small-2507; params=24.0B; size=13.35GB; arch=llama; fmt=gguf
• gemma-3-27b → load as google/gemma-3-27b; params=27.0B; size=15.3GB; arch=gemma3; fmt=gguf
• phi-4-reasoning-plus → load as microsoft/phi-4-reasoning-plus; params=15.0B; size=8.43GB; arch=phi3; fmt=gguf
• lfm2-1.2b → load as liquid/lfm2-1.2b; params=1.2B; size=1.16GB; arch=lfm2; fmt=gguf
• qwen3-4b-thinking-2507 → load as qwen/qwen3-4b-thinking-2507; params=4.0B; size=2.33GB; arch=qwen3; fmt=gguf
• gpt-oss-120b → load as openai/gpt-oss-120b; params=120.0B; size=59.03GB; arch=gpt-oss; fmt=gguf
Traceback (most recent call last):
File "/home/ralf/prog/bench/machine_tests/ml/lmstudio_model_enum_test/main2.py", line 215, in <module>
main()
~~~~^^
File "/home/ralf/prog/bench/machine_tests/ml/lmstudio_model_enum_test/main2.py", line 145, in main
models = list_models()
File "/home/ralf/prog/bench/machine_tests/ml/lmstudio_model_enum_test/main2.py", line 82, in list_models
params = float(pstr[:-1]) if isinstance(pstr, str) and pstr.upper().endswith("B") else None
~~~~~^^^^^^^^^^^
ValueError: could not convert string to float: '30B-A3'
so there seems to be an issue with parsing the model names (ot the params property). Maybe the script should only consider that string up to “B”.
so there seems to be an issue with parsing the model names (ot the params property). Maybe the script should only consider that string up to “B”.