Explore the research collection
2 entries · Follow this search
- Other
OpenEnv Integration for Training LLMs with Environments
Living TRL docs (main). White-box path: environment_factory plus GRPOTrainer auto-discovers public tool methods, runs the multi-turn loop, and reads env.reward (Echo, Wordle, multi-env Wordle+Catch). Black-box/harness path (experimental): HarnessRolloutWorker plus AsyncGRPOTrainer lets a production agent such as opencode own planner, tools, and stop condition inside an OpenEnv ResourceSession; a transparent_proxy records token ids and logprobs; verify() plus optional rollout_reward_fn / train_turn_fn / agent_turn_fn score the outcome and filter turns. Reference script examples/scripts/openenv/opencode.py on agentica-org/DeepCoder-Preview-Dataset; sibling HF-sandbox script for multi-node rollouts. OpenEnv itself is Gymnasium-style step/reset/state with Hub-hosted Spaces. Discord posted the opencode harness hash.
- Other
Transformers documentation: AWQ (Activation-aware Weight Quantization)
Living Transformers docs for Activation-aware Weight Quantization: identify AWQ checkpoints via quantization_config.quant_method=awq (typically 4-bit, group_size 128, zero_point, gemm). from_pretrained loads autoawq/llm-awq weights with other tensors in fp16 by default; dtype and device_map control the rest. Notes AutoAWQ pins Transformers to 4.47.1. Optional AwqConfig fused modules (Llama/Mistral out of the box; fuse_max_seq_len + do_fuse) roughly double decode tok/s vs unfused on TheBloke/Mistral-7B-OpenOrca-AWQ at batch=1 (e.g. 32/32: 80.3 vs 38.5 tok/s, 4.00 vs 4.50 GB). ExLlamaV2 via version=exllama (AMD GPUs supported). Cannot combine fused modules with FlashAttention2. Method paper is Lin et al. AWQ (arXiv 2306.00978, MLSys 2024).