mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-20 13:56:01 +08:00
11 lines
161 B
Python
11 lines
161 B
Python
import pickle
|
|
|
|
|
|
class PickleEncoder:
|
|
|
|
def encode(self, obj):
|
|
return pickle.dumps(obj)
|
|
|
|
def decode(self, data):
|
|
return pickle.loads(data)
|