Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix_json adds curly braces #362

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix bugs
marianna13 committed Jan 14, 2025
commit 5ec3e7f679cb8108ee540d29d7598ed5da10d1b0
15 changes: 1 addition & 14 deletions src/bespokelabs/curator/llm/llm.py
Original file line number Diff line number Diff line change
@@ -110,20 +110,7 @@ def __init__(
"gpu_memory_utilization": gpu_memory_utilization,
}

if self.backend == "vllm":
config_params = {
"model": model_name,
"generation_params": generation_params,
"tensor_parallel_size": tensor_parallel_size,
"enforce_eager": enforce_eager,
"max_model_length": max_model_length,
"max_tokens": max_tokens,
"gpu_memory_utilization": gpu_memory_utilization,
"batch_size": batch_size if batch_size is not None else 256,
"distributed_executor_backend": distributed_executor_backend,
"pipeline_parallel_size": pipeline_parallel_size,
}
config = OfflineRequestProcessorConfig(**_remove_none_values(config_params))
self._request_processor = _RequestProcessorFactory.create(backend_params, batch=batch, response_format=response_format, backend=backend)

def _hash_fingerprint(self, fingerprint_str):
return xxh64(fingerprint_str.encode("utf-8")).hexdigest()
You are viewing a condensed version of this merge commit. You can view the full changes here.