codingfun2022

Results 6 issues of codingfun2022

**Describe the bug** ``for`` can be used as expressions, as verified by the following code: ```text L = for (int i

bug

* [DONE] optimizer_abstraction Add the following PyTorchEstimator parameters. **loss and metric** + loss_function + metric_class (and builtin ModelMetric classes) **dataset and minibatch transformers** + training_dataset_transformer & validation_dataset_transformer + training_minibatch_transformer &...

enhancement

**metaspore-serving-bin** tries each model load type sequentially, which will leave extra error logs. A better way would be checking model load type according to directory structure in advance.

enhancement

Currently, metaspore-serving-bin init and load use different directory structure, where the latter contains model version in the path, which makes it impossible for metaspore-serving-bin to init from a previously loaded...

enhancement

Currently, the Python preprocessor uses stdout to pass input_names and output_names back to metaspore-serving-bin, which will make exceptions thrown in the Python preprocessor invisible in the log of metaspore-serving-bin. Another...

enhancement

Give prompt: ``[['Human', 'Hello! What is your name?'], ['Assistant', None]]``, the ``count_token`` api will returns 2 which is the history length instead of token count. See the following screenshots: ![img_v2_02f3d397-496b-4a35-a7da-95a7c14eaefg](https://github.com/lm-sys/FastChat/assets/103977926/d43a2388-9314-4745-8ef5-1771293d99d4)...